Ignore:
Timestamp:
May 26, 2010, 3:23:21 PM (12 years ago)
Author:
charles
Message:

(trunk libT) define MAX_BLOCK_SIZE once instead of in a handful of places

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/peer-common.h

    r10500 r10694  
    1212
    1313#ifndef __TRANSMISSION__
    14 #error only libtransmission should #include this header.
     14 #error only libtransmission should #include this header.
    1515#endif
    1616
     
    3434        batch them together to send enough requests to
    3535        meet our bandwidth goals for the next N seconds */
    36     REQUEST_BUF_SECS = 10
     36    REQUEST_BUF_SECS = 10,
     37
     38    /** this is the maximum size of a block request.
     39        most bittorrent clients will reject requests
     40        larger than this size. */
     41    MAX_BLOCK_SIZE = ( 1024 * 16 )
     42   
    3743};
    3844
Note: See TracChangeset for help on using the changeset viewer.