Skip to content

Commit 255caf6

Browse files
committed
Set ReadWriteTimeout to be same as provided timeout
1 parent a0d3c65 commit 255caf6

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Assets/PatchKit Patcher/Scripts/AppData/Remote/Downloaders/BaseHttpDownloader.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
using System;
1+
using System;
22
using System.IO;
33
using System.Net;
44
using JetBrains.Annotations;
@@ -79,7 +79,8 @@ public void Download(CancellationToken cancellationToken)
7979
{
8080
Address = new Uri(_url),
8181
Range = _bytesRange,
82-
Timeout = _timeout
82+
Timeout = _timeout,
83+
ReadWriteTimeout = _timeout,
8384
};
8485

8586
using (var response = _httpClient.Get(request))

0 commit comments

Comments
 (0)