[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lwip-devel] [patch #3796] api_lib.c: patch for netconn_write(), fixes
From: |
Jonathan Larmour |
Subject: |
[lwip-devel] [patch #3796] api_lib.c: patch for netconn_write(), fixes a possible race condition |
Date: |
Wed, 11 Apr 2007 23:40:26 +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 #13, patch #3796 (project lwip):
Would SYS_ARCH_PROTECT be a straightforward (albeit ugly) way to avoid the
race here? tcp_sndbuf() is straightforward read of pcb->snd_buf, which is
only assigned to in three places.
Alternatively there could be (another!) message to the tcpip thread to
retrieve the send buffer size.
I think it wouldn't be too hard to fix this completely, even if it's not very
clean.
_______________________________________________________
Reply to this item at:
<http://savannah.nongnu.org/patch/?3796>
_______________________________________________
Message sent via/by Savannah
http://savannah.nongnu.org/
- [lwip-devel] [patch #3796] api_lib.c: patch for netconn_write(), fixes a possible race condition,
Jonathan Larmour <=