>>serialise your use of lwIP sockets into a single thread.
Yes I think about this idea. But I do not know, how 2 udp socket working in
one thread with select function. Because in my system used FreeRtos and
select function using FreeRtos task timeout struct. Maybe 2 udp socket can't
work with select function in one thread?
Currently I replace udp socket in one thread with RAW api functions. Now
select function in other thread working ok. But tread with RAW udp
connection work not good. Because I get first respond in call_back function
after 10s. (because send IP not in arp table and send function packet is
#define SYS_LIGHTWEIGHT_PROT 1
#define ARP_QUEUEING 1
Maybe need manualy refresh arp request quene?
----- Original Message -----
From: "Kieran Mansley" <kieran@...>
To: "Mailing list for lwIP users" <lwip-users@...>
Sent: Tuesday, March 06, 2012 9:58 PM
Subject: Re: [lwip-users] UDP socket thread safe problem
> On 23 Feb 2012, at 08:34, Darius Babrauskas wrote:
>> I have old project with LWIP v.1.2. for AVR32.
>> 2 threads A and B . Each treads have 1 UDP socket with No( 0 and 1 ).
>> Each thread have self timeout struct.
> I think if you don't want to update to the latest version of lwIP you will
> probably have to serialise your use of lwIP sockets into a single thread.
> lwip-users mailing list
> lwip-users@... > https://lists.nongnu.org/mailman/listinfo/lwip-users