Add timeout for connect in all modules

This commit is contained in:
z3APA3A committed 2016-12-23 00:56:16 +03:00
1 parent 3c9ff54ae8
commit e2884b182a
6 files changed
+28 -19

No files matched your search

+1 -1
View File
@@ -140,7 +140,7 @@ void * dnsprchild(struct clientparam* param) {
}
param->sinsr = nservers[0].addr;
if(nservers[0].usetcp) {
if(so._connect(param->remsock,(struct sockaddr *)&param->sinsr,SASIZE(&param->sinsr))) RETURN(830);
if(connectwithpoll(param->remsock,(struct sockaddr *)&param->sinsr,SASIZE(&param->sinsr))) RETURN(830);
buf-=2;
*(unsigned short*)buf = htons(i);
i+=2;