fixed range request bug for files larger than 2 GB in web seeds
This commit is contained in:
parent
2948b3b375
commit
bd93634c14
|
@ -90,6 +90,8 @@
|
||||||
* only keeps one outstanding duplicate request per peer
|
* only keeps one outstanding duplicate request per peer
|
||||||
reduces waste download, specifically when streaming
|
reduces waste download, specifically when streaming
|
||||||
|
|
||||||
|
* fixed range request bug for files larger than 2 GB in web seeds
|
||||||
|
|
||||||
release 0.14.8
|
release 0.14.8
|
||||||
|
|
||||||
* ignore unkown metadata messages
|
* ignore unkown metadata messages
|
||||||
|
|
|
@ -240,7 +240,7 @@ namespace libtorrent
|
||||||
request += "\r\nRange: bytes=";
|
request += "\r\nRange: bytes=";
|
||||||
request += to_string(size_type(r.piece) * info.piece_length() + r.start).elems;
|
request += to_string(size_type(r.piece) * info.piece_length() + r.start).elems;
|
||||||
request += "-";
|
request += "-";
|
||||||
request += to_string(r.piece * info.piece_length() + r.start + r.length - 1).elems;
|
request += to_string(size_type(r.piece) * info.piece_length() + r.start + r.length - 1).elems;
|
||||||
if (m_first_request || using_proxy)
|
if (m_first_request || using_proxy)
|
||||||
request += "\r\nConnection: keep-alive";
|
request += "\r\nConnection: keep-alive";
|
||||||
request += "\r\n\r\n";
|
request += "\r\n\r\n";
|
||||||
|
|
Loading…
Reference in New Issue