Fist naive attempt to improve streaming
at leat inform executor about blocking call
This commit is contained in:
parent
7820bcf053
commit
1c9aa8ca72
2 changed files with 12 additions and 9 deletions
|
|
@ -170,7 +170,7 @@ impl HttpApi {
|
|||
let range_header = headers.get(http::header::RANGE);
|
||||
trace!(torrent_id=idx, file_id=file_id, range=?range_header, "request for HTTP stream");
|
||||
|
||||
if let Some(range) = headers.get(http::header::RANGE) {
|
||||
if let Some(range) = range_header {
|
||||
let offset: Option<u64> = range
|
||||
.to_str()
|
||||
.ok()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue