mirror of
https://github.com/aria2/aria2.git
synced 2025-02-26 08:22:11 +00:00
Reduce UDP tracker request timeout
See GH-507
This commit is contained in:
parent
b89dc77407
commit
8709015024
@ -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",
|
||||
|
Loading…
Reference in New Issue
Block a user