Lines Matching refs:timeout
2219 int timeout; in channel_parse_json() local
2221 timeout = GetTickCount() > chanpart->ch_deadline; in channel_parse_json()
2227 timeout = now_tv.tv_sec > chanpart->ch_deadline.tv_sec in channel_parse_json()
2232 if (timeout) in channel_parse_json()
3381 channel_wait(channel_T *channel, sock_T fd, int timeout) in channel_wait() argument
3383 if (timeout > 0) in channel_wait()
3384 ch_log(channel, "Waiting for up to %d msec", timeout); in channel_wait()
3391 DWORD deadline = GetTickCount() + timeout; in channel_wait()
3436 tval.tv_sec = timeout / 1000; in channel_wait()
3437 tval.tv_usec = (timeout % 1000) * 1000; in channel_wait()
3473 if (poll(fds, nfd, timeout) > 0) in channel_wait()
3616 channel_T *channel, ch_part_T part, int timeout, int raw, int *outlen) in channel_read_block() argument
3626 mode == MODE_RAW ? "RAW" : "NL", timeout); in channel_read_block()
3648 if (channel_wait(channel, fd, timeout) != CW_READY) in channel_read_block()
3726 int timeout; in channel_read_json_block() local
3757 timeout = timeout_arg; in channel_read_json_block()
3761 timeout = chanpart->ch_deadline - GetTickCount() + 1; in channel_read_json_block()
3767 timeout = (chanpart->ch_deadline.tv_sec in channel_read_json_block()
3774 if (timeout < 0) in channel_read_json_block()
3779 timeout = timeout_arg; in channel_read_json_block()
3781 else if (timeout > timeout_arg) in channel_read_json_block()
3782 timeout = timeout_arg; in channel_read_json_block()
3786 || channel_wait(channel, fd, timeout) != CW_READY) in channel_read_json_block()
3788 if (timeout == timeout_arg) in channel_read_json_block()
3856 int timeout; in common_channel_read() local
3882 timeout = channel_get_timeout(channel, part); in common_channel_read()
3884 timeout = opt.jo_timeout; in common_channel_read()
3890 timeout, TRUE, &outlen); in common_channel_read()
3911 timeout, raw, NULL); in common_channel_read()
3916 channel_read_json_block(channel, part, timeout, id, &listtv); in common_channel_read()
4268 int timeout; in ch_expr_common() local
4303 timeout = opt.jo_timeout; in ch_expr_common()
4305 timeout = channel_get_timeout(channel, part_read); in ch_expr_common()
4306 if (channel_read_json_block(channel, part_read, timeout, id, &listtv) in ch_expr_common()
4333 int timeout; in ch_raw_common() local
4360 timeout = opt.jo_timeout; in ch_raw_common()
4362 timeout = channel_get_timeout(channel, part_read); in ch_raw_common()
4364 timeout, TRUE, NULL); in ch_raw_common()