Changeset 3906


Ignore:
Timestamp:
Nov 20, 2007, 5:29:56 PM (14 years ago)
Author:
charles
Message:

tweak the peer limits a bit for faster uploading

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/peer-msgs.c

    r3895 r3906  
    6969
    7070    PEX_INTERVAL            = (60 * 1000), /* msec between calls to sendPex() */
    71     PEER_PULSE_INTERVAL     = (250),       /* msec between calls to pulse() */
    72     RATE_PULSE_INTERVAL     = (333),       /* msec between calls to ratePulse() */
     71    PEER_PULSE_INTERVAL     = (100),       /* msec between calls to pulse() */
     72    RATE_PULSE_INTERVAL     = (250),       /* msec between calls to ratePulse() */
     73
     74    MAX_OUTBUF_SIZE         = 4096,
    7375     
    7476    /* Fast Peers Extension constants */
     
    14621464        speedLeft = ~0;
    14631465
    1464     bufLeft = 4096 - tr_peerIoWriteBytesWaiting( msgs->io );
     1466    bufLeft = MAX_OUTBUF_SIZE - tr_peerIoWriteBytesWaiting( msgs->io );
    14651467    ret = MIN( speedLeft, bufLeft );
    14661468    if( useSwift)
Note: See TracChangeset for help on using the changeset viewer.