Changeset 12415


Ignore:
Timestamp:
May 4, 2011, 9:38:01 PM (10 years ago)
Author:
jordan
Message:

(trunk libT) #2338 "Add uTP support" -- increase the block bandwidth to 3000 bytes in phase 1 as suggested by jch in comment:120.

The rationale is that by using 3000 bytes we'll send one full-size frame straight away, and leave enough buffered data for the next frame to go out in a timely manner.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/bandwidth.c

    r12361 r12415  
    226226    while( n > 0 )
    227227    {
    228         const size_t increment = 1024;
     228        /* value of 3000 bytes chosen so that when using uTP we'll send a full-size
     229         * frame right away and leave enough buffered data for the next frame to go
     230         * out in a timely manner. */
     231        const size_t increment = 3000;
     232
    229233        const int bytesUsed = tr_peerIoFlush( peers[i], dir, increment );
    230234
Note: See TracChangeset for help on using the changeset viewer.