fixed bug in udp tracker scrape response parsing
This commit is contained in:
parent
2e34bef04c
commit
056b53ee08
|
@ -28,6 +28,7 @@
|
||||||
incoming connection
|
incoming connection
|
||||||
* added more detailed instrumentation of the disk I/O thread
|
* added more detailed instrumentation of the disk I/O thread
|
||||||
|
|
||||||
|
* fixed bug in udp tracker scrape response parsing
|
||||||
* fixed bug in the disk thread that could get triggered under heavy load
|
* fixed bug in the disk thread that could get triggered under heavy load
|
||||||
* fixed bug in add_piece() that would trigger asserts
|
* fixed bug in add_piece() that would trigger asserts
|
||||||
* fixed vs 2010 build
|
* fixed vs 2010 build
|
||||||
|
|
|
@ -491,8 +491,6 @@ namespace libtorrent
|
||||||
|
|
||||||
void udp_tracker_connection::on_scrape_response(char const* buf, int size)
|
void udp_tracker_connection::on_scrape_response(char const* buf, int size)
|
||||||
{
|
{
|
||||||
buf += 8; // skip header
|
|
||||||
|
|
||||||
restart_read_timeout();
|
restart_read_timeout();
|
||||||
int action = detail::read_int32(buf);
|
int action = detail::read_int32(buf);
|
||||||
int transaction = detail::read_int32(buf);
|
int transaction = detail::read_int32(buf);
|
||||||
|
|
Loading…
Reference in New Issue