[Top][All Lists]

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

[lwip-devel] [bug #23240] recv_udp increases counters for available rece

From: Kieran Mansley
Subject: [lwip-devel] [bug #23240] recv_udp increases counters for available receives before netbuf is actually posted
Date: Fri, 26 Jun 2009 14:44:42 +0000
User-agent: Opera/9.21 (X11; Linux i686; U; en)

Follow-up Comment #13, bug #23240 (project lwip):

I've attached a patch which I think might address this in the short term,
using Jifl's suggestion of making the variables signed and adjusting the tests
of those variables to consider anything < 0 as equivalent to zero.  It also
moves the SYS_ARCH_INC and API_EVENT calls to only occur if the
sys_mbox_trypost() call is successful.  I have done this for the recv_udp,
recv_tcp, recv_raw and accept_function functions in api_msg.c as they all
seemed to have the same bit of code.

Before I check this in I would welcome some code review from the other
developers as I want to check that I have correctly understood their proposed

If anyone can test that this actually works that would be great too.

(file #18330)

Additional Item Attachment:

File name: bug23240                       Size:4 KB


Reply to this item at:


  Message sent via/by Savannah

reply via email to

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