[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: AW: [lwip-users] Assertion : "tcp_enqueue: no pbufs on queue =>bothq
From: |
Kieran Mansley |
Subject: |
Re: AW: [lwip-users] Assertion : "tcp_enqueue: no pbufs on queue =>bothqueues empty" |
Date: |
Tue, 31 Oct 2006 11:28:48 +0000 |
On Tue, 2006-10-31 at 12:23 +0100, Amir Bukhari wrote:
> Yes, I have 2 real time task which access the same connection, but one only
> sends and the second task read and send data.
>
> This case should not case an assertion, its application problem to handle
> such case, but TCP/IP stack should not be affected with such or I am wrong
>
> What can happened if both queue is embty, does lwip will crash?
Your port of lwIP should ensure that there is only one thread in the
lwIP core code at any one time. lwIP is not thread safe I'm afraid.
The consequences of having two threads concurrently active in the stack
are many and varied, but all bad.
Kieran