removed BUG

This commit is contained in:
2026-04-10 15:49:31 +03:00
parent a2b7977866
commit 179e0631ff

View File

@@ -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;