From df97a76c2f5aa513161b88b1601d57d0c67dfd6e Mon Sep 17 00:00:00 2001 From: Arvid Norberg Date: Tue, 30 Jul 2013 15:59:41 +0000 Subject: [PATCH] enable request logging in regression testing --- .regression.yml | 2 +- src/peer_connection.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.regression.yml b/.regression.yml index 41cfb50ca..7662febca 100644 --- a/.regression.yml +++ b/.regression.yml @@ -12,6 +12,6 @@ time_limit: 500 features: - variant=release asserts=production - - encryption=openssl statistics=on logging=verbose disk-stats=on bandwidth-limit-logging=on dht=logging + - encryption=openssl statistics=on logging=verbose disk-stats=on bandwidth-limit-logging=on dht=logging request-log=on - ipv6=off dht=off extensions=off logging=none deprecated-functions=off diff --git a/src/peer_connection.cpp b/src/peer_connection.cpp index be2ebfce4..5483fa179 100644 --- a/src/peer_connection.cpp +++ b/src/peer_connection.cpp @@ -90,7 +90,7 @@ namespace libtorrent detail::write_uint64(total_microseconds((time_now_hires() - min_time())), ptr); memcpy(ptr, &ih[0], 8); ptr += 8; - detail::write_uint32(boost::uint32_t(p), ptr); + detail::write_uint32(uintptr_t(p) & 0xffffffff, ptr); detail::write_uint32(r.piece, ptr); detail::write_uint32(r.start, ptr); detail::write_uint32(r.length, ptr);