diff options
author | gVisor bot <gvisor-bot@google.com> | 2021-06-23 06:46:10 +0000 |
---|---|---|
committer | gVisor bot <gvisor-bot@google.com> | 2021-06-23 06:46:10 +0000 |
commit | 184313004a79955d83db93cffe24a13154f1e6a6 (patch) | |
tree | c6a6c9e66dbf9c54466335190e9d3602cca1ab0d /pkg | |
parent | b3541865b49341bc1577f4152f80140f576f4fda (diff) | |
parent | e5fe488b22734e798df760d9646c6b1c5f25c207 (diff) |
Merge release-20210614.0-17-ge5fe488b2 (automated)
Diffstat (limited to 'pkg')
-rw-r--r-- | pkg/tcpip/transport/tcp/endpoint.go | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/pkg/tcpip/transport/tcp/endpoint.go b/pkg/tcpip/transport/tcp/endpoint.go index a27e2110b..242e6b7f8 100644 --- a/pkg/tcpip/transport/tcp/endpoint.go +++ b/pkg/tcpip/transport/tcp/endpoint.go @@ -2372,6 +2372,9 @@ func (e *endpoint) shutdownLocked(flags tcpip.ShutdownFlags) tcpip.Error { e.notifyProtocolGoroutine(notifyTickleWorker) return nil } + // Wake up any readers that maybe waiting for the stream to become + // readable. + e.waiterQueue.Notify(waiter.ReadableEvents) } // Close for write. @@ -2394,6 +2397,9 @@ func (e *endpoint) shutdownLocked(flags tcpip.ShutdownFlags) tcpip.Error { e.sndQueueInfo.SndClosed = true e.sndQueueInfo.sndQueueMu.Unlock() e.handleClose() + // Wake up any writers that maybe waiting for the stream to become + // writable. + e.waiterQueue.Notify(waiter.WritableEvents) } return nil |