SCTP Discussions

Text archives Help


Re: [SCTP-Discussion] se_deliver_unreliably() issues


Chronological Thread 
  • From: Michael Tuexen <Michael.Tuexen AT micmac.franken.de>
  • To: Oleg Levy <buskila AT gmail.com>
  • Cc: discussion AT sctp.de
  • Subject: Re: [SCTP-Discussion] se_deliver_unreliably() issues
  • Date: Tue, 20 Nov 2007 15:49:50 +0100
  • List-archive: <http://lists.franken.de/pipermail/sctp-discussion>
  • List-id: SCTP Discussions <sctp-discussion.sctp.de>

Hi Oleg,

can you provide a patch?

Best regards
Michael

On Nov 19, 2007, at 5:49 PM, Oleg Levy wrote:

Hello,
I think that there are two issues with the function (in sctplib-1.0.7) in the following while loop: "while((tmp != NULL) && (((delivery_data*)(tmp->data))->tsn <= up_to_tsn))"
1) "g_list_remove (se->List, d_chunk);" should probably be "se->List = g_list_remove (se->List, d_chunk);"
2) In addition, after removal of the chunk from the list,se- >queuedBytes should be decreased by the size of the chunk removed ("se->queuedBytes -= d_chunk->data_length;")

If queuedBytes is not decreased, the RWND returned by the receiver of FORWARD_TSN to the sender is constantly decreasing until the sender refuses to send more data and at that point the connection is stuck as all outgoing data is queued by the stack in the sender.

Thanks
--oleg

_______________________________________________
sctp-discussion mailing list
sctp-discussion AT sctp.de
http://www.sctp.de/mailman/listinfo/sctp-discussion





Archive powered by MHonArc 2.6.19+.

Top of page