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:
@@ -1569,7 +1569,7 @@ void
|
|||||||
TCPEndpoint::_AddData(tcp_segment_header &segment, net_buffer *buffer)
|
TCPEndpoint::_AddData(tcp_segment_header &segment, net_buffer *buffer)
|
||||||
{
|
{
|
||||||
fReceiveQueue.Add(buffer, segment.sequence);
|
fReceiveQueue.Add(buffer, segment.sequence);
|
||||||
fReceiveNext = fReceiveQueue.LastSequence();
|
fReceiveNext = fReceiveQueue.NextSequence();
|
||||||
|
|
||||||
TRACE(" _AddData(): adding data, receive next = %lu. Now have %lu bytes.",
|
TRACE(" _AddData(): adding data, receive next = %lu. Now have %lu bytes.",
|
||||||
(uint32)fReceiveNext, fReceiveQueue.Available());
|
(uint32)fReceiveNext, fReceiveQueue.Available());
|
||||||
|
|||||||
Reference in New Issue
Block a user