buffstreams
buffstreams copied to clipboard
readLoop may memory leak
func (t *TCPListener) readLoop(conn *TCPConn) {
go func(c *TCPConn, s <-chan struct{}) {
<-s
c.Close()
}(conn, t.shutdownChannel)
for {
// if this return, the routine above will never be stopped unless shutdownGroup is closed
// incomingHeaderBuffer or outgoingDataBuffer may memory leak
}
}