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 _______________________________________________ lwip-users mailing list [email protected] http://lists.nongnu.org/mailman/listinfo/lwip-users
