ing
This commit is contained in:
parent
9f519e728e
commit
10cadfc5b5
|
@ -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.
|
// Decode the request body and check if RPC method is valid.
|
||||||
req := new(serverRequest)
|
req := new(serverRequest)
|
||||||
err := json.NewDecoder(r).Decode(req)
|
err := json.NewDecoder(r).Decode(req)
|
||||||
|
if err == io.ErrUnexpectedEOF || err == io.EOF {
|
||||||
log.Printf("NewRequest err: %v", err)
|
log.Printf("NewRequest err: %v", err)
|
||||||
|
}
|
||||||
if err != nil {
|
if err != nil {
|
||||||
err = &Error{
|
err = &Error{
|
||||||
Code: E_PARSE,
|
Code: E_PARSE,
|
||||||
|
|
Loading…
Reference in New Issue
Block a user