[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[lwip-devel] [task #7675] Enable to refuse data on a TCP_EVENT_RECV call

From: Simon Goldschmidt
Subject: [lwip-devel] [task #7675] Enable to refuse data on a TCP_EVENT_RECV call
Date: Sun, 13 Jan 2008 12:43:02 +0000
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv: Gecko/20071127 Firefox/

Follow-up Comment #1, task #7675 (project lwip):

In my opinion, the best solution would be to first call TCP_EVENT_RECV and
only acknowledge the data if it returned ERR_OK. In case of an error, the data
could be deleted and would eventually be retransmitted by the other side.

While this produces more traffic, I think it would be better than keeping
pbufs allocated in a case where the application doesn't process (and free)
them fast enough: that could easily lead to running out of memory.

However, rhe change in tcp_in.c for receiving first and then acknowledging
might not be simple and so I think it should not hold back 1.3.0.


Reply to this item at:


  Nachricht geschickt von/durch Savannah

reply via email to

[Prev in Thread] Current Thread [Next in Thread]