Reduce UDP tracker request timeout

See GH-507
pull/511/merge
Tatsuhiro Tsujikawa 2015-12-19 18:26:10 +09:00
parent b89dc77407
commit 8709015024
1 changed files with 2 additions and 2 deletions

View File

@ -370,7 +370,7 @@ struct TimeoutCheck {
{
auto t = req->dispatched.difference(now);
if(req->failCount == 0) {
if(t >= 15_s) {
if(t >= 5_s) {
switch(req->action) {
case UDPT_ACT_CONNECT:
A2_LOG_INFO(fmt("UDPT resend CONNECT to %s:%u transaction_id=%u",
@ -396,7 +396,7 @@ struct TimeoutCheck {
return false;
}
} else {
if(t >= 1_min) {
if(t >= 10_s) {
switch(req->action) {
case UDPT_ACT_CONNECT:
A2_LOG_INFO(fmt("UDPT timeout CONNECT to %s:%u transaction_id=%u",