Changeset 4177


Ignore:
Timestamp:
Dec 15, 2007, 4:36:43 PM (14 years ago)
Author:
charles
Message:

raise the maximum connection limit a bit.

Location:
trunk/libtransmission
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/fdlimit.c

    r4109 r4177  
    8787enum
    8888{
    89     TR_MAX_SOCKETS = 320,
     89    TR_MAX_SOCKETS = 512,
    9090
    9191    TR_MAX_OPEN_FILES = 8, /* real files, not sockets */
  • trunk/libtransmission/peer-msgs.c

    r4053 r4177  
    7373    RATE_PULSE_INTERVAL     = (250),       /* msec between calls to ratePulse() */
    7474
    75     MAX_OUTBUF_SIZE         = 4096,
     75    /* 13 is the size of the BitTorrent overhead of a BT_PIECE message...
     76     * since all (or nearly all) piece requests are 16 K, this typically
     77     * means we'd fill a 4096 K outbuf 5 times (4096, 4096, 4096, 4096, 16)
     78     * but by adding the 13 here we can shorten it to 4 refills... not sure
     79     * if this actually makes any difference since the libevent layer smooths
     80     * things out anyway, but it doesn't hurt either... */
     81    MAX_OUTBUF_SIZE         = (4096 + 13),
    7682     
    7783    /* Fast Peers Extension constants */
Note: See TracChangeset for help on using the changeset viewer.