[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [lwip-users] Infinite hang in tcp_slowtmr()
From: |
Sylvain Rochet |
Subject: |
Re: [lwip-users] Infinite hang in tcp_slowtmr() |
Date: |
Mon, 12 Oct 2015 22:41:42 +0200 |
User-agent: |
Mutt/1.5.21 (2010-09-15) |
Hi Stephen,
On Mon, Oct 12, 2015 at 02:51:14PM -0500, Stephen Cowell wrote:
>
> I find that I sometimes get an infinite loop when stepping to
> pcb->next...
I didn't have to read further. As usual, it looks like a broken port or
usage which violate lwIP threading model.
Summary:
- Do *NOT* call anything in interrupt context, nothing, never,
absolutely never, use your OS semaphore signaling to an
Ethernet/serial/… RX thread
- memp_*, pbuf_*, functions are thread-safe if SYS_LIGHTWEIGHT_PROT is
set, and again, thread safe does not mean it is interrupt safe
- 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).
- Please read doc/rawapi.txt from the lwIP source which explain that
more comprehensively
Sylvain
signature.asc
Description: Digital signature
- [lwip-users] Is tcp_err()-callback optional?, Karl Karpfen, 2015/10/12
- Re: [lwip-users] Is tcp_err()-callback optional?, Simon Goldschmidt, 2015/10/15
- [lwip-users] Infinite hang in tcp_slowtmr(), Stephen Cowell, 2015/10/15
- Re: [lwip-users] Infinite hang in tcp_slowtmr(),
Sylvain Rochet <=
- Re: [lwip-users] Infinite hang in tcp_slowtmr(), Stephen Cowell, 2015/10/15
- Re: [lwip-users] Infinite hang in tcp_slowtmr(), Sylvain Rochet, 2015/10/13
- Re: [lwip-users] Infinite hang in tcp_slowtmr(), Sylvain Rochet, 2015/10/13
- Re: [lwip-users] Infinite hang in tcp_slowtmr(), Enrico Murador - Research & Development - CET, 2015/10/14
- Re: [lwip-users] Infinite hang in tcp_slowtmr(), Stephen Cowell, 2015/10/14
- Re: [lwip-users] Infinite hang in tcp_slowtmr(), Enrico Murador - Research & Development - CET, 2015/10/14
- Re: [lwip-users] Infinite hang in tcp_slowtmr(), Sylvain Rochet, 2015/10/14
- Re: [lwip-users] Infinite hang in tcp_slowtmr(), Dinesh Pandey, 2015/10/23
- Re: [lwip-users] Infinite hang in tcp_slowtmr(), Dinesh Pandey, 2015/10/29
- Re: [lwip-users] Infinite hang in tcp_slowtmr(), Sylvain Rochet, 2015/10/29