Skip to content

Commit c9e994c

Browse files
committed
fix: No internal retries and reduce timeout
1 parent 2047ccd commit c9e994c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Runtime/Scripts/Core/Request/WebRequestInternal.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ public class WebRequestInternal
1616
public event Action<WebRequestResponseData> OnRequestDone;
1717
public event Action<int> OnRequestWillRestart;
1818

19-
private const int RequestTimeOut = 8;
20-
private int _requestAttemptsLimit = 3;
19+
private const int RequestTimeOut = 4;
20+
private int _requestAttemptsLimit = 1;
2121

2222
public WebRequestState RequestState { get; private set; }
2323

@@ -247,4 +247,4 @@ private void DisposeRequest(bool disposeUploadHandler)
247247
_cancellationTokenSource = null;
248248
}
249249
}
250-
}
250+
}

0 commit comments

Comments
 (0)