From: Sergey Matveev Date: Fri, 6 Jan 2017 11:42:52 +0000 (+0300) Subject: Skip XDR read error logging if IO error happened X-Git-Tag: 0.1~42 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=b6bec9b2b65c207708a359abd4c86b157d43a29d;p=nncp.git Skip XDR read error logging if IO error happened --- diff --git a/src/cypherpunks.ru/nncp/llp.go b/src/cypherpunks.ru/nncp/llp.go index 6f92bf2..6ab8e41 100644 --- a/src/cypherpunks.ru/nncp/llp.go +++ b/src/cypherpunks.ru/nncp/llp.go @@ -603,7 +603,7 @@ func (state *LLPState) StartWorkers(conn net.Conn, infosPayloads [][]byte, paylo if err != nil { unmarshalErr := err.(*xdr.UnmarshalError) netErr, ok := unmarshalErr.Err.(net.Error) - if !(ok && netErr.Timeout()) { + if !((ok && netErr.Timeout()) || unmarshalErr.ErrorCode == xdr.ErrIO) { state.ctx.LogE("llp-recv", SdsAdd(sds, SDS{"err": err}), "") } break