lwip-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [lwip-users] Suggestions on how to attack this particular issue


From: Kieran Mansley
Subject: Re: [lwip-users] Suggestions on how to attack this particular issue
Date: Tue, 25 Aug 2009 09:57:30 +0100

On Mon, 2009-08-24 at 20:48 +0200, Micael wrote:
> Hi Guys.
> 
> I'm having issues with lwip, where it works for a while, but then, after some 
> connects, it simply stops working, and I would appreciate suggestions on how 
> to try to nail this particular problem.

My best guess is that this is a multi-threading problem.  You could
check this by either moving all lwIP socket related code into one
thread, and using some inter-thread communication mechanism to separate
the data flow out if necessary into separate threads, or put a mutex
around the socket accesses so that only one of your threads can be
active in lwIP at one time.

I would like it if lwIP supported access from separate threads using
separate sockets (note, we're not going to support a single socket
accessed from multiple threads, or even handing a socket over from one
thread (e.g. a listening thread) to another).  So if there are problems
in this area we should take a look.

Kieran





reply via email to

[Prev in Thread] Current Thread [Next in Thread]