diff --git a/protocol/json/server.go b/protocol/json/server.go index dde8981..32c8546 100644 --- a/protocol/json/server.go +++ b/protocol/json/server.go @@ -85,7 +85,9 @@ func newCodecRequest(r io.Reader, encoder encode.Encoder) protocol.CodecRequest // Decode the request body and check if RPC method is valid. req := new(serverRequest) err := json.NewDecoder(r).Decode(req) - log.Printf("NewRequest err: %v", err) + if err == io.ErrUnexpectedEOF || err == io.EOF { + log.Printf("NewRequest err: %v", err) + } if err != nil { err = &Error{ Code: E_PARSE,