search for: start_tv

Displaying 2 results from an estimated 2 matches for "start_tv".

Did you mean: start_tx
2018 Feb 23
6
RFC 8305 Happy Eyeballs in OpenSSH
...} + close(sock); + errno = optval; + } + } + return -1; +} + +static int +ssh_connect_happy_eyeballs(const char * host, struct addrinfo *ai, + struct sockaddr_storage *hostaddr, int *timeout_ms, + int needpriv) +{ + struct addrinfo *fd_ai[FD_SETSIZE]; + struct timeval initiate_tv, start_tv, select_tv, *tv; + fd_set fds, wfds; + int res, oerrno, diff, diff0, nfds = 0, sock = -1; + FD_ZERO(&fds); + if (*timeout_ms > 0) + monotime_tv(&start_tv); + while ((ai != NULL || nfds > 0) && + ! ssh_connect_timeout(&start_tv, *timeout_ms)) { + res = ssh_connect_...
2011 Aug 13
1
[Bug 8375] New: rsync with bandwidth limit sometimes expend extra time
...The next lines show the modifications needed in io.c file to resolve the problem. $ diff -u io.c io.c-MOSER --- io.c 2010-06-30 13:17:26.000000000 -0300 +++ io.c-MOSER 2011-08-12 22:29:41.000000000 -0300 @@ -1402,7 +1402,7 @@ if (prior_tv.tv_sec) { elapsed_usec = (start_tv.tv_sec - prior_tv.tv_sec) * ONE_SEC + (start_tv.tv_usec - prior_tv.tv_usec); - total_written -= elapsed_usec * bwlimit / (ONE_SEC/1024); + total_written -= ((long long)((long long)elapsed_usec * bwlimit) / (ONE_SEC/1024)); if...