From b87829817a4cd8c3bd61a265c303707098112558 Mon Sep 17 00:00:00 2001 From: Christian Schwarz Date: Sun, 30 Apr 2017 23:44:07 +0200 Subject: [PATCH] rpc: bytestream: listen: filesystems request: reply with header --- rpc/rpc.go | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/rpc/rpc.go b/rpc/rpc.go index 077c7c6..cc9a175 100644 --- a/rpc/rpc.go +++ b/rpc/rpc.go @@ -104,6 +104,13 @@ func ListenByteStreamRPC(conn io.ReadWriteCloser, handler RPCHandler) error { respondWithError(encoder, EHandler, err) return conn.Close() } else { + r := ResponseHeader{ + RequestId: header.Id, + ResponseType: RFilesystems, + } + if err := encoder.Encode(&r); err != nil { + panic(err) + } if err := encoder.Encode(&roots); err != nil { panic(err) }