diff --git a/nsqlookupd/tcp.go b/nsqlookupd/tcp.go index 1c145aa8d..0050762aa 100644 --- a/nsqlookupd/tcp.go +++ b/nsqlookupd/tcp.go @@ -21,6 +21,7 @@ func (p *tcpServer) Handle(clientConn net.Conn) { _, err := io.ReadFull(clientConn, buf) if err != nil { p.ctx.nsqlookupd.logf(LOG_ERROR, "failed to read protocol version - %s", err) + clientConn.Close() return } protocolMagic := string(buf)