fix #10340: properly handle EINVAL on OSX and also avoid to call handle_connect() in case of a disconnetected socket which is not meant to connect.
G
Giampaolo Rodola' committed
f4ce1146fc00a4477ee03eeecbc90566384a041f
Parent: 3539ef3