log stats of incoming piece requests

This commit is contained in:
Arvid Norberg
2012-03-09 06:24:01 +00:00
parent e08718428e
commit b58a96d76b
5 changed files with 59 additions and 0 deletions

View File

@@ -331,6 +331,10 @@ namespace libtorrent
{
INVARIANT_CHECK;
#ifdef TORRENT_STATS
++m_ses.m_piece_rejects;
#endif
if (!m_supports_fast) return;
TORRENT_ASSERT(m_sent_handshake && m_sent_bitfield);