Changeset 6121


Ignore:
Timestamp:
Jun 10, 2008, 5:13:56 PM (14 years ago)
Author:
charles
Message:

(libT) poll the RPC request queue more frequently if there have been recent requests.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/rpc-server.c

    r6108 r6121  
    5656{
    5757    struct tr_rpc_server * s = arg->user_data;
     58    s->lastRequestTime = time( NULL );
    5859
    5960    if( !EVBUFFER_LENGTH( s->out ) )
     
    117118    if( EVBUFFER_LENGTH( server->in ) || EVBUFFER_LENGTH( server->out ) ) {
    118119        interval = BUSY_INTERVAL_MSEC;
    119         server->lastRequestTime = now;
    120120    } else if( now - server->lastRequestTime < 300 ) {
    121121        interval = IDLE_INTERVAL_MSEC;
Note: See TracChangeset for help on using the changeset viewer.