Ignore:
Timestamp:
Feb 4, 2009, 4:58:52 PM (13 years ago)
Author:
charles
Message:

(trunk libT) #1748: possible fix for the kqueue corruption errors by consolidating the three per-torrent libevent timers into three session-wide timers. Since most people reporting this error have lots of torrents loaded, consider a hypothetical example: if you had 500 torrents, this patch will reduce 1,500 libevent timers down to just three timers. On top of that, those three have simpler life cycles too...

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/webseed.c

    r7658 r7824  
    6060    if( w->callback )
    6161        w->callback( NULL, e, w->callback_userdata );
    62 }
    63 
    64 static void
    65 fireNeedReq( tr_webseed * w )
    66 {
    67     tr_peer_event e = blankEvent;
    68     e.eventType = TR_PEER_NEED_REQ;
    69     publish( w, &e );
    7062}
    7163
     
    181173            if( w->dead )
    182174                tr_webseedFree( w );
    183             else  {
     175            else
    184176                fireClientGotBlock( w, w->pieceIndex, w->pieceOffset, w->byteCount );
    185                 fireNeedReq( w );
    186             }
    187177        }
    188178    }
Note: See TracChangeset for help on using the changeset viewer.