Skip to content

readLoop may memory leak  #22

@yalay

Description

@yalay
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
        }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions