Skip to content

Commit

Permalink
Update tcp.go
Browse files Browse the repository at this point in the history
  • Loading branch information
yc90s authored Oct 12, 2017
1 parent 1543cfe commit 5c31b2f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions nsqlookupd/tcp.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 5c31b2f

Please sign in to comment.