Searched refs:tv_retry (Results 1 – 2 of 2) sorted by relevance
1313 struct timeval tv_retry = evcon->initial_retry_timeout; in evhttp_connection_cb_cleanup() local1318 tv_retry.tv_usec *= 2; in evhttp_connection_cb_cleanup()1319 if (tv_retry.tv_usec > 1000000) { in evhttp_connection_cb_cleanup()1320 tv_retry.tv_usec -= 1000000; in evhttp_connection_cb_cleanup()1321 tv_retry.tv_sec += 1; in evhttp_connection_cb_cleanup()1323 tv_retry.tv_sec *= 2; in evhttp_connection_cb_cleanup()1324 if (tv_retry.tv_sec > 3600) { in evhttp_connection_cb_cleanup()1325 tv_retry.tv_sec = 3600; in evhttp_connection_cb_cleanup()1326 tv_retry.tv_usec = 0; in evhttp_connection_cb_cleanup()1329 event_add(&evcon->retry_ev, &tv_retry); in evhttp_connection_cb_cleanup()
3387 const struct timeval tv_retry = { 0, 500000 }; in http_connection_retry_test() local3389 evhttp_connection_set_initial_retry_tv(evcon, &tv_retry); in http_connection_retry_test()