Files
scylladb/net
Vlad Zolotarov ea7bdc65c0 tcp: properly calculate the payload length for TSO decision
Fixes issue #41

Packet doesn't have neither L2 nor L3 headers in the tcp::output_one(),
therefore comparing p.len() to MSS + L2_HDR + L3_HDR + L4_HDR when
payload size is greater than (MSS - L2_HDR - L3_HDR) gives the wrong
negative decision in regard to whether to send this frame as an TSO frame.

Fix the above by comparing the MSS to actual payload size.

Signed-off-by: Vlad Zolotarov <vladz@cloudius-systems.com>
Reviewed-by: Asias He <asias@cloudius-systems.com>
2015-04-20 08:46:36 +03:00
..
2015-04-08 18:41:48 +03:00
2015-04-19 10:33:32 +03:00