mirror of
https://github.com/BililiveRecorder/BililiveRecorder.git
synced 2024-11-16 03:32:20 +08:00
Support tencent cloud timeout handling
This commit is contained in:
parent
e25c27c8b7
commit
f26f8159bc
|
@ -310,7 +310,8 @@ namespace BililiveRecorder.Core
|
|||
};
|
||||
|
||||
_stream = await _response.Content.ReadAsStreamAsync();
|
||||
if (_response.Headers.ConnectionClose != true)
|
||||
|
||||
if (!new object[] { null, true }.Contains(_response.Headers.ConnectionClose))
|
||||
_stream.ReadTimeout = 3 * 1000;
|
||||
|
||||
StreamDownloadTask = Task.Run(_ReadStreamLoop);
|
||||
|
|
Loading…
Reference in New Issue
Block a user