TCP: only store up to 1000 unacked segments (in each direction).
authorJeff Morriss <jeff.morriss.ws@gmail.com>
Mon, 12 Oct 2015 22:04:01 +0000 (18:04 -0400)
committerAnders Broman <a.broman58@gmail.com>
Wed, 14 Oct 2015 04:20:02 +0000 (04:20 +0000)
commit065c4646a631690896c9b45cadc4cc2d012255d8
tree010bb42b30c6d0eecdd4403e3ad0f7c235475d0b
parent66526f60c495a79a1d784caaca2c1f0d13bb7b11
TCP: only store up to 1000 unacked segments (in each direction).

If we're seeing only one side of a conversation (we're not seeing any ACKs)
then things get really, really slow as the number of unacked segments grows.

1000 is, of course, an arbitrary limit.

Bug: 11589
Change-Id: I42652965b736da50122c722e6ac386c4d481e57f
Reviewed-on: https://code.wireshark.org/review/10971
Petri-Dish: Jeff Morriss <jeff.morriss.ws@gmail.com>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Anders Broman <a.broman58@gmail.com>
epan/dissectors/packet-tcp.c
epan/dissectors/packet-tcp.h