Support tencent cloud timeout handling

This commit is contained in:
Misty 2020-06-21 21:27:05 +08:00
parent e25c27c8b7
commit f26f8159bc

View File

@ -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);