diff options
author | Ian Gudger <igudger@google.com> | 2018-12-04 13:14:22 -0800 |
---|---|---|
committer | Shentubot <shentubot@google.com> | 2018-12-04 13:15:25 -0800 |
commit | 8cbd6153a69ae370a3c5d3795952a1de00f7436b (patch) | |
tree | fcc730f5b5a98b10840c9d62bc715733b8bc3199 /pkg/tcpip/transport/tcp/snd.go | |
parent | ad8f293e1af99f3c04d1020bb51b46c0dba60e45 (diff) |
Fix available calculation when merging TCP segments
PiperOrigin-RevId: 224033418
Change-Id: I780be973e8be68ac93e8c9e7a100002e912f40d2
Diffstat (limited to 'pkg/tcpip/transport/tcp/snd.go')
-rw-r--r-- | pkg/tcpip/transport/tcp/snd.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/tcpip/transport/tcp/snd.go b/pkg/tcpip/transport/tcp/snd.go index b47e279fc..122c52f32 100644 --- a/pkg/tcpip/transport/tcp/snd.go +++ b/pkg/tcpip/transport/tcp/snd.go @@ -411,7 +411,7 @@ func (s *sender) sendData() { if seg.flags == 0 { // Merge segments if allowed. if seg.data.Size() != 0 { - available := int(seg.sequenceNumber.Size(end)) + available := int(s.sndNxt.Size(end)) if available > limit { available = limit } |