mirror of
https://github.com/cloudwu/skynet.git
synced 2026-07-25 12:43:09 +00:00
correct odd format style
This commit is contained in:
@@ -268,7 +268,7 @@ open_socket(struct socket_server *ss, struct request_open * request, struct sock
|
|||||||
goto _failed;
|
goto _failed;
|
||||||
}
|
}
|
||||||
int sock= -1;
|
int sock= -1;
|
||||||
for ( ai_ptr = ai_list; ai_ptr != NULL; ai_ptr = ai_ptr->ai_next ) {
|
for (ai_ptr = ai_list; ai_ptr != NULL; ai_ptr = ai_ptr->ai_next ) {
|
||||||
sock = socket( ai_ptr->ai_family, ai_ptr->ai_socktype, ai_ptr->ai_protocol );
|
sock = socket( ai_ptr->ai_family, ai_ptr->ai_socktype, ai_ptr->ai_protocol );
|
||||||
if ( sock < 0 ) {
|
if ( sock < 0 ) {
|
||||||
continue;
|
continue;
|
||||||
@@ -276,8 +276,8 @@ open_socket(struct socket_server *ss, struct request_open * request, struct sock
|
|||||||
if (!blocking) {
|
if (!blocking) {
|
||||||
sp_nonblocking(sock);
|
sp_nonblocking(sock);
|
||||||
}
|
}
|
||||||
status = connect( sock, ai_ptr->ai_addr, ai_ptr->ai_addrlen );
|
status = connect( sock, ai_ptr->ai_addr, ai_ptr->ai_addrlen);
|
||||||
if ( status != 0 && errno != EINPROGRESS) {
|
if ( status != 0 && errno != EINPROGRESS) {
|
||||||
close(sock);
|
close(sock);
|
||||||
sock = -1;
|
sock = -1;
|
||||||
continue;
|
continue;
|
||||||
|
|||||||
Reference in New Issue
Block a user