[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lwip-members] [bug #45433] Endless loop in tcp_slowtmr
From: |
Sylvain Rochet |
Subject: |
[lwip-members] [bug #45433] Endless loop in tcp_slowtmr |
Date: |
Mon, 29 Jun 2015 07:56:32 +0000 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Firefox/38.0 Iceweasel/38.0.1 |
Update of bug #45433 (project lwip):
Status: None => Need Info
_______________________________________________________
Follow-up Comment #1:
As usual, it looks like a broken port or usage which do not follow lwIP
threading model.
Summary:
- Do *NOT* call anything in interrupt context, nothing, never, never,
use your OS semaphore signaling to an Ethernet/serial/… RX thread
- memp_* functions are thread-safe if SYS_LIGHTWEIGHT_PROT is
set, and again, thread safe does not mean it is interrupt safe, especially
if your hardware does nested interrupts
- Do *NOT* call any function from the RAW API outside lwIP thread
- Use Netconn or Socket API in others threads, but keep in mind you
should not share a Netconn/Socket control block between threads, (or use
proper locking if you really have to, of course).
_______________________________________________________
Reply to this item at:
<http://savannah.nongnu.org/bugs/?45433>
_______________________________________________
Message sent via/by Savannah
http://savannah.nongnu.org/