Add an explanatory comment in sock_try_connect()
This commit is contained in:
@@ -168,9 +168,12 @@ int sock_try_connect( int fd, struct sockaddr* to, socklen_t addrlen, int wait )
|
|||||||
break; /* success */
|
break; /* success */
|
||||||
case EAGAIN:
|
case EAGAIN:
|
||||||
case EINTR:
|
case EINTR:
|
||||||
break; /* Try again */
|
/* Try connect() again. This only breaks out of the switch,
|
||||||
|
* not the do...while loop. since result == -1, we go again.
|
||||||
|
*/
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
warn( SHOW_ERRNO( "Failed to connect()") );
|
warn( SHOW_ERRNO( "Failed to connect()" ) );
|
||||||
goto out;
|
goto out;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user