]> granicus.if.org Git - transmission/commitdiff
(trunk libT) add a couple of simple debugging messages
authorCharles Kerr <charles@transmissionbt.com>
Wed, 21 Jan 2009 04:02:39 +0000 (04:02 +0000)
committerCharles Kerr <charles@transmissionbt.com>
Wed, 21 Jan 2009 04:02:39 +0000 (04:02 +0000)
libtransmission/peer-msgs.c

index 6b69f64216b98f0ad9500e57ffbfa6305193f188..2f98798f4f43729de654a97e48013a1e3d1588e9 100644 (file)
@@ -785,6 +785,11 @@ pumpRequestQueue( tr_peermsgs * msgs, const time_t now )
     int                 len = msgs->clientAskedFor.len;
     struct peer_request req;
 
+    dbgmsg( msgs, "clientIsChoked %d, download allowed %d, len %d, max %d, msgs->clientWillAskFor.len %d",
+            (int)msgs->peer->clientIsChoked,
+            (int)tr_torrentIsPieceTransferAllowed( msgs->torrent, TR_PEER_TO_CLIENT ),
+            len, max, msgs->clientWillAskFor.len );
+
     if( msgs->peer->clientIsChoked )
         return;
     if( !tr_torrentIsPieceTransferAllowed( msgs->torrent, TR_PEER_TO_CLIENT ) )
@@ -808,6 +813,7 @@ pumpRequestQueue( tr_peermsgs * msgs, const time_t now )
             ++len;
             ++sent;
         }
+        else dbgmsg( msgs, "not asking for it because we've already got it..." );
     }
 
     if( sent )