From e71135d7523bcb992764e37d3238db477a8b1842 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=A8=8B=E4=B8=9A=E6=98=A5?= <57088250+chengyechun@users.noreply.github.com> Date: Thu, 10 Oct 2024 14:51:31 +0800 Subject: [PATCH] Update FileAccess.h The first transmission is not counted as retransmission. Therefore, the number of retransmission attempts must be greater than the configured number of retransmissions. Conflict:NA Reference:https://github.com/lavv17/lft/commit/e71135d7523bcb992764e37d3238db477a8b1842 --- src/FileAccess.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/FileAccess.h b/src/FileAccess.h index 1bd081151..4d8e252f7 100644 --- a/src/FileAccess.h +++ b/src/FileAccess.h @@ -565,7 +565,7 @@ class UploadState retries=session->GetRetries(); off_t pos=session->GetRealPos(); int max_retries=session->GetMaxRetries(); - if(max_retries>0 && retries>=max_retries) + if(max_retries>0 && retries>max_retries) pos=0; if(pos_watermark