fixed an issue where a TCP connection would fail if the first expected segment of data was lost. Reported by Axel.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@20796 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Hugo Santos
2007-04-24 16:14:35 +00:00
parent 938e711e1b
commit f8486a0219
@@ -1569,7 +1569,7 @@ void
TCPEndpoint::_AddData(tcp_segment_header &segment, net_buffer *buffer)
{
fReceiveQueue.Add(buffer, segment.sequence);
fReceiveNext = fReceiveQueue.LastSequence();
fReceiveNext = fReceiveQueue.NextSequence();
TRACE(" _AddData(): adding data, receive next = %lu. Now have %lu bytes.",
(uint32)fReceiveNext, fReceiveQueue.Available());