Lines Matching refs:idle
470 int idle; in uv__tcp_keepalive() local
474 (void) &idle; in uv__tcp_keepalive()
510 idle = delay; in uv__tcp_keepalive()
512 if (idle < 10) in uv__tcp_keepalive()
513 idle = 10; in uv__tcp_keepalive()
515 if (idle > 10*24*60*60) in uv__tcp_keepalive()
516 idle = 10*24*60*60; in uv__tcp_keepalive()
518 UV_KEEPALIVE_FACTOR(idle); in uv__tcp_keepalive()
523 if (setsockopt(fd, IPPROTO_TCP, TCP_KEEPIDLE, &idle, sizeof(idle))) in uv__tcp_keepalive()
538 if (setsockopt(fd, IPPROTO_TCP, TCP_KEEPALIVE_THRESHOLD, &idle, sizeof(idle))) in uv__tcp_keepalive()
551 idle = delay; in uv__tcp_keepalive()
552 UV_KEEPALIVE_FACTOR(idle); in uv__tcp_keepalive()
554 if (setsockopt(fd, IPPROTO_TCP, TCP_KEEPIDLE, &idle, sizeof(idle))) in uv__tcp_keepalive()
558 if (setsockopt(fd, IPPROTO_TCP, TCP_KEEPALIVE, &idle, sizeof(idle))) in uv__tcp_keepalive()