summaryrefslogtreecommitdiffhomepage
path: root/pkg/sentry
diff options
context:
space:
mode:
authorgVisor bot <gvisor-bot@google.com>2021-02-19 00:05:29 +0000
committergVisor bot <gvisor-bot@google.com>2021-02-19 00:05:29 +0000
commit747815249c9077bce85b25dfcdbed6dfe21d3484 (patch)
treecbff39493caa1a01eeb04533c139a7845b467d42 /pkg/sentry
parent86cb33a031425bcc61210778836acfb935c4d7db (diff)
parentec7f44f36b57c8472a692cdd736ad721c5170ee2 (diff)
Merge release-20210208.0-74-gec7f44f36 (automated)
Diffstat (limited to 'pkg/sentry')
-rw-r--r--pkg/sentry/socket/unix/transport/connectioned.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/pkg/sentry/socket/unix/transport/connectioned.go b/pkg/sentry/socket/unix/transport/connectioned.go
index 809c95429..b1967fc36 100644
--- a/pkg/sentry/socket/unix/transport/connectioned.go
+++ b/pkg/sentry/socket/unix/transport/connectioned.go
@@ -364,7 +364,9 @@ func (e *connectionedEndpoint) Connect(ctx context.Context, server BoundEndpoint
e.connected = ce
// Make sure the newly created connected endpoint's write queue is updated
// to reflect this endpoint's send buffer size.
- e.connected.SetSendBufferSize(e.ops.GetSendBufferSize())
+ if bufSz := e.connected.SetSendBufferSize(e.ops.GetSendBufferSize()); bufSz != e.ops.GetSendBufferSize() {
+ e.ops.SetSendBufferSize(bufSz, false /* notify */)
+ }
}
return server.BidirectionalConnect(ctx, e, returnConnect)