mirror of
https://github.com/eddyem/snippets_library.git
synced 2026-05-07 13:16:56 +03:00
removed BUG
This commit is contained in:
2
socket.c
2
socket.c
@@ -716,7 +716,7 @@ int sl_sock_open(sl_socktype_e type, const char *path, int isserver, int ai_sock
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
for(struct addrinfo *p = res; p; p = p->ai_next){
|
for(struct addrinfo *p = res; p; p = p->ai_next){
|
||||||
if((sock = socket(p->ai_family, p->ai_socktype|SOCK_NONBLOCK, p->ai_protocol)) < 0) continue;
|
if((sock = socket(p->ai_family, p->ai_socktype/*|SOCK_NONBLOCK*/, p->ai_protocol)) < 0) continue;
|
||||||
DBG("Try proto %d, type %d, socktype %d", p->ai_protocol, p->ai_socktype, p->ai_socktype);
|
DBG("Try proto %d, type %d, socktype %d", p->ai_protocol, p->ai_socktype, p->ai_socktype);
|
||||||
if(isserver){
|
if(isserver){
|
||||||
int reuseaddr = 1;
|
int reuseaddr = 1;
|
||||||
|
|||||||
Reference in New Issue
Block a user