Note: lists.zephyrproject.org will be down for maintenance on Monday, September 26th, starting at 9AM Pacific Time (4PM Monday September 26, 2022 UTC), for approximately one hour.
Re: Closing an accepting BSD socket from a different thread
On 23 May 2019, at 00:10, Stephan Gatzka <stephan.gatzka@...> wrote:
You're assuming Unix signals work...
https://lwn.net/Articles/414618/ Unfixable designs
Even if MAIN_LOOP_PERIOD is somewhat longer than the network protocol timeout(s) after which the socket should be closed anyway if the other end disappears?variables. E.g., following is a well-know pattern:Yeah sure, put this is polling and a waste of resources.
No, the only possible solution I see is an additional socket connection via localhost which "signals" poll() and afterwards I can see what needs to be done (e.g. calling close()).Nice.