|
From: | address@hidden |
Subject: | Re: [lwip-users] lwip + FreeRTOS socket sharing error |
Date: | Thu, 26 Apr 2018 20:05:38 +0200 |
User-agent: | Mozilla/5.0 (Windows NT 6.1; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.7.0 |
On 26.04.2018 19:49, alweib wrote:
I'm having an issue sharing a TCP socket between two tasks in FreeRTOS (v. 7.0) and LWIP(v. 1.40).
The versions of both lwIP and FreeRTOS you are using are pretty old. At least lwIP has numerous bugs fixed since then.
[..] It should be noted that i read on one task while writing in the other task, but this should be allowed (as long as i don't do the same (R or W) in both tasks at the same time).
Using a socket full duplex (read from one thread, write from another thread) is not supported in lwIP 1.4.0. You'll need at least 2.0.x for that, but only recent git master versions support aborting waiting read threads on close.
Simon
[Prev in Thread] | Current Thread | [Next in Thread] |