fix: ensure peekMutex is locked before handleSocket

This commit is contained in:
gVisor bot 2023-02-26 11:18:01 +08:00
parent c1d7d4be13
commit f6911e21ea

View file

@ -469,6 +469,8 @@ func handleTCPConn(connCtx C.ConnContext) {
)
}
peekMutex.Lock()
defer peekMutex.Unlock()
handleSocket(connCtx, remoteConn)
}