Skip to content

Commit 85e7611

Browse files
committed
Merge pull request #11557 from JiaHuann:master
PiperOrigin-RevId: 778577234
2 parents 902e88f + e22e7c4 commit 85e7611

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

pkg/tcpip/transport/tcp/endpoint.go

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1198,6 +1198,14 @@ func (e *Endpoint) cleanupLocked() {
11981198
e.timeWaitTimer.Stop()
11991199
}
12001200

1201+
// Remove current EP from its lEP acceptQueue.pendingEndpoint if exists.
1202+
if e.h != nil && e.h.listenEP != nil {
1203+
lEP := e.h.listenEP
1204+
lEP.acceptMu.Lock()
1205+
delete(lEP.acceptQueue.pendingEndpoints, e)
1206+
lEP.acceptMu.Unlock()
1207+
}
1208+
12011209
// Close all endpoints that might have been accepted by TCP but not by
12021210
// the client.
12031211
e.closePendingAcceptableConnectionsLocked()

0 commit comments

Comments
 (0)