[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: |
Jonathan Larmour |
Subject: |
[lwip-devel] [bug #23240] recv_udp increases counters for available receives before netbuf is actually posted |
Date: |
Mon, 02 Jun 2008 11:50:42 +0000 |
User-agent: |
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.13) Gecko/20060513 Fedora/1.0.8-1.1.fc3.1.legacy Firefox/1.0.8 |
Follow-up Comment #4, bug #23240 (project lwip):
Not sure about that. This would have to also cover access to sock->rcvevent.
Although I haven't thought through in detail it seems to me there's a risk of
deadlock (semaphores not being like recursive mutexes).
I think we just need to make these counts be signed quantities (as well as
the proposed fix in comment #0), to avoid problems if they wrap. I'd just like
another opinion on whether that idea has any flaws. Even if a semaphore
wouldn't risk deadlocks, it may be overkill.
_______________________________________________________
Reply to this item at:
<http://savannah.nongnu.org/bugs/?23240>
_______________________________________________
Message sent via/by Savannah
http://savannah.nongnu.org/
- [lwip-devel] [bug #23240] recv_udp increases counters for available receives before netbuf is actually posted,
Jonathan Larmour <=