[Top][All Lists]

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

Re: [lwip-users] PPP as Server Disconnect/Reconnect Problem Under 2.0.0

From: address@hidden
Subject: Re: [lwip-users] PPP as Server Disconnect/Reconnect Problem Under 2.0.0 Beta1
Date: Mon, 23 May 2016 21:42:04 +0200
User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.7.2

Greg Smith wrote:
Additionally, and this is the important part, I want to resume listening for a new connection.  So I call pppapi_listen() again at the end of my link status callback function (which happens to look a lot like Sylvain's example in ppp.txt :-)  ). 

Coming back to the original post, you must *not* call API functions from tcpip_thread. Maybe this is your problem. I think the callback is called from tcpip_thread, so by blocking on a semaphore effectively blocks the whole stack.

The API functions are meant to get you into the tcpip_thread to call things. If you already *are* in this thread, call 'ppp_listen()' instead.


reply via email to

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