Use configured timeouts for DNS operations instead static ones

This commit is contained in:
z3APA3A committed 2016-01-17 02:13:17 +03:00
1 parent e59ccd22b1
commit fcbccf39ef
2 files changed
+3 -3

No files matched your search

+1 -1
View File
@@ -158,7 +158,7 @@ void * dnsprchild(struct clientparam* param) {
}
param->statscli64 += i;
param->nwrites++;
len = sockrecvfrom(param->remsock, (struct sockaddr *)&param->sinsr, buf, BUFSIZE, 15000);
len = sockrecvfrom(param->remsock, (struct sockaddr *)&param->sinsr, buf, BUFSIZE, conf.timeouts[DNS_TO]*1000);
if(len <= 13) {
RETURN(821);
}