This repository has been archived by the owner. It is now read-only.

Provide more information for malformed calls to host #976

Merged
merged 1 commit into from Feb 6, 2016
Jump to file or symbol
Failed to load files and symbols.
+1 −1
Diff settings

Always

Just for now

@@ -78,7 +78,7 @@ func (h *Host) threadedHandleConn(conn net.Conn) {
}
unrecognizedCalls := atomic.LoadUint64(&h.atomicUnrecognizedCalls)
if unrecognizedCalls < 1e3 || (unrecognizedCalls > 1e3 && randInt == 0) {
h.log.Printf("WARN: incoming conn %v was malformed", conn.RemoteAddr())
h.log.Printf("WARN: incoming conn %v was malformed: %v", conn.RemoteAddr(), err)
}
return
}
ProTip! Use n and p to navigate between commits in a pull request.