diff options
author | gVisor bot <gvisor-bot@google.com> | 2020-03-19 14:24:14 +0000 |
---|---|---|
committer | gVisor bot <gvisor-bot@google.com> | 2020-03-19 14:24:14 +0000 |
commit | 5eedafe1b263f4b53d7b9c1fa805508674cd0b9e (patch) | |
tree | 57540b48f61e4c3475e0b7a2f7725a4d97c8fa12 /pkg/tcpip/transport/tcp/dispatcher.go | |
parent | 124b60768ba18a3fceee47dbb35f7409c44bf18f (diff) | |
parent | e9e399c25d4fcad2adfe92d73b192b9784774964 (diff) |
Merge release-20200219.0-202-ge9e399c (automated)
Diffstat (limited to 'pkg/tcpip/transport/tcp/dispatcher.go')
-rwxr-xr-x | pkg/tcpip/transport/tcp/dispatcher.go | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/pkg/tcpip/transport/tcp/dispatcher.go b/pkg/tcpip/transport/tcp/dispatcher.go index d792b07d6..90ac956a9 100755 --- a/pkg/tcpip/transport/tcp/dispatcher.go +++ b/pkg/tcpip/transport/tcp/dispatcher.go @@ -128,7 +128,7 @@ func (p *processor) handleSegments() { continue } - if !ep.workMu.TryLock() { + if !ep.mu.TryLock() { ep.newSegmentWaker.Assert() continue } @@ -138,12 +138,10 @@ func (p *processor) handleSegments() { if err := ep.handleSegments(true /* fastPath */); err != nil || ep.EndpointState() == StateClose { // Send any active resets if required. if err != nil { - ep.mu.Lock() ep.resetConnectionLocked(err) - ep.mu.Unlock() } ep.notifyProtocolGoroutine(notifyTickleWorker) - ep.workMu.Unlock() + ep.mu.Unlock() continue } @@ -151,7 +149,7 @@ func (p *processor) handleSegments() { p.epQ.enqueue(ep) } - ep.workMu.Unlock() + ep.mu.Unlock() } } } |