[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [lwip-users] about lwip_close() and lwip_connect() problem
From: |
Kieran Mansley |
Subject: |
Re: [lwip-users] about lwip_close() and lwip_connect() problem |
Date: |
Tue, 20 May 2008 09:27:33 +0100 |
On Tue, 2008-05-20 at 12:14 +0800, xcbman wrote:
> I use lwip1.3.0 in winxp.
>
> I have a problem(maybe is a bug) with socket (lwip_close() and
> lwip_connect() function)
>
> Two thread:
>
> Thread1: socket()->connect(sock)->send/recv()->close();
>
> Thread2:close(sock)
If you want to use the same socket from different threads you'll need to
protect it against concurrent access like this. Put another way, the
lwIP sockets layer is not sophisticated enough to cope with concurrent
access to the same socket from multiple threads.
Kieran