Support socket options for connback sockets and connection timeouts

This commit is contained in:
z3APA3A committed 2018-05-05 17:16:51 +03:00
1 parent b8127257f9
commit eb09ae7c58
8 files changed
+44 -28

No files matched your search

+1 -1
View File
@@ -1154,7 +1154,7 @@ unsigned long udpresolve(int af, unsigned char * name, unsigned char * value, un
*sinsr = nservers[i].addr;
}
if(usetcp){
if(connectwithpoll(sock,(struct sockaddr *)sinsr,SASIZE(sinsr))) {
if(connectwithpoll(sock,(struct sockaddr *)sinsr,SASIZE(sinsr),CONNECT_TO)) {
so._shutdown(sock, SHUT_RDWR);
so._closesocket(sock);
break;