/* start timer */
bsock->timer_start = watchdog_time;
bsock->clear_timed_out();
+ bsock->set_killable(false);
for (;;) {
if (server) {
bsock->restore_blocking(flags);
/* Clear timer */
bsock->timer_start = 0;
+ bsock->set_killable(true);
return stat;
}
/* start timer */
bsock->timer_start = watchdog_time;
bsock->clear_timed_out();
+ bsock->set_killable(false);
nleft = nbytes;
/* Clear timer */
bsock->timer_start = 0;
+ bsock->set_killable(true);
return nbytes - nleft;
}