Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions pkg/tcpip/transport/tcp/endpoint.go
Original file line number Diff line number Diff line change
Expand Up @@ -1193,6 +1193,14 @@ func (e *Endpoint) cleanupLocked() {
e.timeWaitTimer.Stop()
}

// Remove current EP from its lEP acceptQueue.pendingEndpoint if exists.
if e.h != nil && e.h.listenEP != nil {
lEP := e.h.listenEP
lEP.acceptMu.Lock()
delete(lEP.acceptQueue.pendingEndpoints, e)
Comment thread
nybidari marked this conversation as resolved.
lEP.acceptMu.Unlock()
}

// Close all endpoints that might have been accepted by TCP but not by
// the client.
e.closePendingAcceptableConnectionsLocked()
Expand Down