mirror of
https://github.com/scylladb/scylladb.git
synced 2026-04-27 03:45:11 +00:00
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>