Changeset 3132


Ignore:
Timestamp:
Sep 22, 2007, 4:44:50 AM (15 years ago)
Author:
charles
Message:

maybe get speed limits working.

Location:
trunk/libtransmission
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/handshake.c

    r3130 r3132  
    884884    uint32_t crypto_select;
    885885
     886dbgmsg( handshake, "zbz reading IA..." );
    886887    if( EVBUFFER_LENGTH(inbuf) < needlen )
    887888        return READ_MORE;
    888889
     890dbgmsg( handshake, "zbz reading IA..." );
    889891    /* parse the handshake ... */
    890892    i = parseHandshake( handshake, inbuf );
     
    903905    /* send crypto_select */
    904906    {
     907dbgmsg( handshake, "handshake->crypto_provide is %d\n", (int)handshake->crypto_provide );
    905908        if( handshake->crypto_provide & CRYPTO_PROVIDE_CRYPTO )
    906909            crypto_select = CRYPTO_PROVIDE_CRYPTO;
     
    908911            crypto_select = CRYPTO_PROVIDE_PLAINTEXT;
    909912        else {
     913dbgmsg( handshake, "gronk..." );
    910914            evbuffer_free( outbuf );
    911915            tr_handshakeDone( handshake, FALSE );
     
    10671071    handshake->io = io;
    10681072    handshake->crypto = tr_peerIoGetCrypto( io );
    1069     handshake->allowUnencryptedPeers = encryption_mode!=TR_ENCRYPTION_REQUIRED;
     1073    handshake->allowUnencryptedPeers = 0;//encryption_mode!=TR_ENCRYPTION_REQUIRED;
    10701074    handshake->doneCB = doneCB;
    10711075    handshake->doneUserData = doneUserData;
  • trunk/libtransmission/peer-mgr.c

    r3129 r3132  
    655655                                    handshake,
    656656                                    handshakeCompare );
    657     assert( ours != NULL );
    658     assert( ours == handshake );
     657    //assert( ours != NULL );
     658    //assert( ours == handshake );
    659659
    660660    in_addr = tr_peerIoGetAddress( io, &port );
     
    741741    assert( peer != NULL );
    742742
     743#if 0
    743744    if( peer->io != NULL ) { /* already connected */
    744745        fprintf( stderr, "not connecting because we already have an IO for that address\n" );
     
    759760                               t->hash );
    760761    initiateHandshake( manager, io );
     762#endif
    761763}
    762764
  • trunk/libtransmission/peer-msgs.c

    r3130 r3132  
    790790canDownload( const tr_peermsgs * msgs UNUSED )
    791791{
    792 #if 0
    793792    tr_torrent * tor = msgs->torrent;
    794793
     
    798797    if( tor->downloadLimitMode == TR_SPEEDLIMIT_SINGLE )
    799798        return tr_rcCanTransfer( tor->download );
    800 #endif
    801799
    802800    return TRUE;
Note: See TracChangeset for help on using the changeset viewer.