git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@5067
91ce42f0-d328-0410-95d8-
f526ca767f89
bsock->tls = NULL;
}
if (bsock->is_timed_out()) {
- shutdown(bsock->m_fd, 2); /* discard any pending I/O */
+ shutdown(bsock->m_fd, SHUT_RDWR); /* discard any pending I/O */
}
socketClose(bsock->m_fd); /* normal close */
}
/* start timer */
bsock->timer_start = watchdog_time;
- bsock->set_timed_out(false);
+ bsock->clear_timed_out();
for (;;) {
if (server) {
/* start timer */
bsock->timer_start = watchdog_time;
- bsock->set_timed_out(false);
+ bsock->clear_timed_out();
nleft = nbytes;