SWI-Prolog / packages-clib

Assorted external libraries: processes, sockets, MIME, CGI, etc.
8 stars 19 forks source link

Handle EISCONN under non-windows systems too. #31

Closed esad closed 4 years ago

esad commented 4 years ago

I've traced this to be the cause of https://github.com/SWI-Prolog/swipl-devel/issues/607

This happens when we retry to connect due to interrupt/signal but we actually already have established an connection and can safely return here. I think until now this was only handled under Windows, the patch should enable it on other systems too.

JanWielemaker commented 4 years ago

Thanks. Merged with some edits, so this results in a conflict on Github. Best way to re-sync is (provided you have no modifications you want to keep)

git fetch origin
git reset --hard origin/master