sleep -> usleep fix

This commit is contained in:
van Hauser 2016-09-01 17:38:33 +02:00
parent cbe0ada4c1
commit f42f7626ac
30 changed files with 40 additions and 40 deletions

View file

@ -279,7 +279,7 @@ void service_nntp(char *ip, int sp, unsigned char options, char *miscptr, FILE *
case 1: /* connect and service init function */
if (sock >= 0)
sock = hydra_disconnect(sock);
// sleepn(300);
// usleepn(300);
if ((options & OPTION_SSL) == 0) {
if (port != 0)
myport = port;
@ -296,7 +296,7 @@ void service_nntp(char *ip, int sp, unsigned char options, char *miscptr, FILE *
hydra_report(stderr, "[ERROR] Child with pid %d terminating, can not connect\n", (int) getpid());
hydra_child_exit(1);
}
// sleepn(300);
// usleepn(300);
buf = hydra_receive_line(sock);
if (buf == NULL || buf[0] != '2') { /* check the first line */
if (verbose || debug)
@ -452,7 +452,7 @@ SASL PLAIN DIGEST-MD5 LOGIN NTLM CRAM-MD5
break;
}
}
sleepn(25);
usleepn(25);
free(buf);
next_run = 2;
break;