SIGN IN SIGN UP

Issue #23618: Refactor internal_connect()

The function now returns the error code instead of using the global errno
(POSIX) or WSAGetLastError() (Windows).

internal_connect() now returns errno if getsockopt() fails.
V
Victor Stinner committed
dd88d3db450c71553fbd56ed2deb8f1a61d66dd6
Parent: 1bb0aef