summaryrefslogtreecommitdiffhomepage
path: root/pkg/p9/transport.go
diff options
context:
space:
mode:
authorAdin Scannell <ascannell@google.com>2019-09-12 23:36:18 -0700
committergVisor bot <gvisor-bot@google.com>2019-09-12 23:37:31 -0700
commita8834fc555539bd6b0b46936c4a79817812658ff (patch)
tree112981aadbc6b3db1146c8765f8542fd305a6433 /pkg/p9/transport.go
parent7c6ab6a219f37a1d4c18ced4a602458fcf363f85 (diff)
Update p9 to support flipcall.
PiperOrigin-RevId: 268845090
Diffstat (limited to 'pkg/p9/transport.go')
-rw-r--r--pkg/p9/transport.go5
1 files changed, 4 insertions, 1 deletions
diff --git a/pkg/p9/transport.go b/pkg/p9/transport.go
index 5648df589..6e8b4bbcd 100644
--- a/pkg/p9/transport.go
+++ b/pkg/p9/transport.go
@@ -54,7 +54,10 @@ const (
headerLength uint32 = 7
// maximumLength is the largest possible message.
- maximumLength uint32 = 4 * 1024 * 1024
+ maximumLength uint32 = 1 << 20
+
+ // DefaultMessageSize is a sensible default.
+ DefaultMessageSize uint32 = 64 << 10
// initialBufferLength is the initial data buffer we allocate.
initialBufferLength uint32 = 64