rostgaard/libesl-ada

Does not release all tasks if connection fails

Closed this issue · 3 comments

Title really says it all. This has been verified to happen with Alice. Give her a bad event socket port, and you can no longer shut her down, instead you have to rely on the ever-reliable kill -9. :)

Yup. The socket needs to be moved to a selector instead.

A fix is implemented in 447c63b.
It releases the thread as it should - but not in a clean fashion. For some reason the selector becomes unavailable as soon as the Connect call is in progress.
If the fix works, then I suggest we do not reopen this bug unless we find a better way of handling it.

Okay, fixed the previously mentioned uncleanlyness. See 433c0af