Merge 1089031 from trunk:

restructure Windows apr_socket_connect() to more closely match
the Unix implementation, fixing the getpeername() optimization
and WSAEISCONN behavior

PR: 48736 (covered WSAISCONN issue)
Submitted by: <inoue ariel-networks.com> (WSAISCONN handling)
Reworked/extended by: trawick


git-svn-id: https://svn.apache.org/repos/asf/apr/apr/branches/1.5.x@1536167 13f79535-47bb-0310-9956-ffa450edef68