mirror of
https://github.com/netbirdio/gvisor.git
synced 2026-05-22 17:12:49 -07:00
Fix flaky behaviour during S/R.
PiperOrigin-RevId: 280280156
This commit is contained in:
committed by
gVisor bot
parent
683e8798ab
commit
6dd4c9ee74
@@ -1229,7 +1229,9 @@ func (e *endpoint) protocolMainLoop(handshake bool) *tcpip.Error {
|
||||
return err
|
||||
}
|
||||
}
|
||||
if e.state != StateError {
|
||||
if e.state != StateClose && e.state != StateError {
|
||||
// Only block the worker if the endpoint
|
||||
// is not in closed state or error state.
|
||||
close(e.drainDone)
|
||||
<-e.undrain
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user