Changeset 6552


Ignore:
Timestamp:
Aug 16, 2008, 4:00:49 PM (13 years ago)
Author:
charles
Message:

more connection management changes

Location:
trunk/libtransmission
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/handshake.c

    r6517 r6552  
    786786    if(( tor = tr_torrentFindFromObfuscatedHash( handshake->handle, obfuscatedTorrentHash )))
    787787    {
    788         dbgmsg( handshake, "found the torrent; it's [%s]", tor->info.name );
     788        dbgmsg( handshake, "got INCOMING connection's encrypted handshake for torrent [%s]", tor->info.name );
    789789        tr_peerIoSetTorrentHash( handshake->io, tor->info.hash );
    790790        if( !tr_torrentAllowsPex( tor ) &&
  • trunk/libtransmission/net.c

    r6396 r6552  
    124124
    125125    if( fd >= 0 ) {
    126         const int buffsize = 1500*2; /* 2x MTU for most ethernet/wireless */
     126        const int buffsize = 1500*3; /* 3x MTU for most ethernet/wireless */
    127127        setsockopt( fd, SOL_SOCKET, SO_SNDBUF, &buffsize, sizeof( buffsize ) );
    128128    }
  • trunk/libtransmission/peer-mgr.c

    r6550 r6552  
    10101010                peer->msgs = tr_peerMsgsNew( t->tor, peer, peerCallbackFunc, t, &peer->msgsTag );
    10111011                atom->time = time( NULL );
    1012                 atom->numFails = 0;
    10131012            }
    10141013        }
     
    17651764    {
    17661765        case 0: sec = 0; break;
    1767         case 1: sec = 30; break;
    1768         case 2: sec = 15*60; break;
    1769         case 3: sec = 30*60; break;
    1770         case 4: sec = 60*60; break;
     1766        case 1: sec = 5; break;
     1767        case 2: sec = 2*60; break;
     1768        case 3: sec = 15*60; break;
     1769        case 4: sec = 30*60; break;
     1770        case 5: sec = 60*60; break;
    17711771        default: sec = 120*60; break;
    17721772    }
     
    18721872
    18731873        /* disconnect some peers.
    1874            if we got transferred piece data, then they might be good peers,
     1874           if we transferred piece data, then they might be good peers,
    18751875           so reset their `numFails' weight to zero.  otherwise we connected
    18761876           to them fruitlessly, so mark it as another fail */
Note: See TracChangeset for help on using the changeset viewer.