Searched refs:tv_retry (Results 1 – 2 of 2) sorted by relevance
1408 struct timeval tv_retry = evcon->initial_retry_timeout; in evhttp_connection_cb_cleanup() local1413 tv_retry.tv_usec *= 2; in evhttp_connection_cb_cleanup()1414 if (tv_retry.tv_usec > 1000000) { in evhttp_connection_cb_cleanup()1415 tv_retry.tv_usec -= 1000000; in evhttp_connection_cb_cleanup()1416 tv_retry.tv_sec += 1; in evhttp_connection_cb_cleanup()1418 tv_retry.tv_sec *= 2; in evhttp_connection_cb_cleanup()1419 if (tv_retry.tv_sec > 3600) { in evhttp_connection_cb_cleanup()1420 tv_retry.tv_sec = 3600; in evhttp_connection_cb_cleanup()1421 tv_retry.tv_usec = 0; in evhttp_connection_cb_cleanup()1424 event_add(&evcon->retry_ev, &tv_retry); in evhttp_connection_cb_cleanup()
3774 const struct timeval tv_retry = { 0, 500000 }; in http_connection_retry_test_basic() local3776 evhttp_connection_set_initial_retry_tv(evcon, &tv_retry); in http_connection_retry_test_basic()