Lines Matching defs:timeout

245 	 * The event for the file descriptor and tcp timeout
266 * The timeout in msec for this tcp connection
478 nsd->children[i].handler->timeout = NULL;
1766 nsd->xfrd_listener->timeout = NULL;
2220 /* pass timeout=-1 for blocking. Returns size, 0, -1(err), or -2(timeout) */
2222 block_read(struct nsd* nsd, int s, void* p, ssize_t sz, int timeout)
2233 ret = poll(&fd, 1, (timeout==-1)?-1:timeout*1000);
2356 /* Wait for cmdsocket to become readable or for next timeout,
2789 /* timeout to collect processes. In case no sigchild happens. */
2793 /* listen on ports, timeout for collecting terminated children */
2915 reload_listener.timeout = NULL;
3594 struct timeval timeout;
3617 /* set timeout to 3 seconds (previously 1/10 second) */
3620 timeout.tv_sec = p->tcp_timeout / 1000;
3621 timeout.tv_usec = (p->tcp_timeout % 1000)*1000;
3628 if(event_add(&p->event, &timeout) != 0)
3635 struct event timeout;
3647 memset(&timeout, 0, sizeof(timeout));
3648 event_set(&timeout, -1, EV_TIMEOUT, remaining_tcp_timeout,
3650 if(event_base_set(event_base, &timeout) != 0)
3652 if(event_add(&timeout, &tv) != 0)
3663 event_del(&timeout);
3686 int flags, struct timespec *timeout)
3691 /* timeout is ignored, ensure caller does not expect it to work */
3692 assert(timeout == NULL); (void)timeout;
4087 struct timeval timeout;
4090 timeout.tv_sec = data->nsd->tcp_timeout;
4091 timeout.tv_usec = 0L;
4099 if(event_add(&data->event, &timeout) != 0)
4180 struct timeval timeout;
4437 timeout.tv_sec = data->tcp_timeout / 1000;
4438 timeout.tv_usec = (data->tcp_timeout % 1000)*1000;
4447 if(event_add(&data->event, &timeout) != 0)
4459 struct timeval timeout;
4574 /* Reset timeout. */
4575 timeout.tv_sec = data->tcp_timeout / 1000;
4576 timeout.tv_usec = (data->tcp_timeout % 1000)*1000;
4584 if(event_add(&data->event, &timeout) != 0)
4609 timeout.tv_sec = data->tcp_timeout / 1000;
4610 timeout.tv_usec = (data->tcp_timeout % 1000)*1000;
4618 if(event_add(&data->event, &timeout) != 0)
5198 struct timeval timeout;
5293 /* very busy, give smaller timeout */
5297 timeout.tv_sec = tcp_data->tcp_timeout / 1000;
5298 timeout.tv_usec = (tcp_data->tcp_timeout % 1000)*1000;
5330 if(event_add(&tcp_data->event, &timeout) != 0) {
5361 send_children_command(struct nsd* nsd, sig_atomic_t command, int timeout)
5376 } else if (timeout > 0) {
5379 &command, sizeof(command), timeout);