summaryrefslogtreecommitdiff
path: root/framing
diff options
context:
space:
mode:
authorYawning Angel <yawning@schwanenlied.me>2014-05-21 01:45:17 +0000
committerYawning Angel <yawning@schwanenlied.me>2014-05-21 01:45:17 +0000
commit19f34317ba024cfcf0061ff7587210b7be8fa2af (patch)
tree69cb2dde8cc7b1779865fc02671d62ee3b86e3dd /framing
parent7c37109c486a66446cbd2c234ab9e276648192f8 (diff)
Change the MSS to 1448 bytes, because timestamps are a thing.
This breaks wireprotocol compatibility.
Diffstat (limited to 'framing')
-rw-r--r--framing/framing.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/framing/framing.go b/framing/framing.go
index 5518b9f..bbb41cc 100644
--- a/framing/framing.go
+++ b/framing/framing.go
@@ -70,7 +70,7 @@ import (
const (
// MaximumSegmentLength is the length of the largest possible segment
// including overhead.
- MaximumSegmentLength = 1500 - 40
+ MaximumSegmentLength = 1500 - (40 + 12)
// FrameOverhead is the length of the framing overhead.
FrameOverhead = lengthLength + secretbox.Overhead