Changeset 7517


Ignore:
Timestamp:
Dec 26, 2008, 8:14:47 PM (12 years ago)
Author:
charles
Message:

(trunk libT) experimental test for #1631 in web.c::setsock()

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/web.c

    r7476 r7517  
    2525#include "web.h"
    2626
    27 /* arbitrary number */
    28 #define MAX_CONCURRENT_TASKS 50
    29 
    30 /* arbitrary number */
    31 #define DEFAULT_TIMER_MSEC 2000
     27enum
     28{
     29    /* arbitrary number */
     30    MAX_CONCURRENT_TASKS = 100,
     31
     32    /* arbitrary number */
     33    DEFAULT_TIMER_MSEC = 2500
     34};
    3235
    3336#if 0
     
    353356         struct tr_web_sockinfo * f )
    354357{
     358    struct timeval tv;
    355359    const int kind = EV_PERSIST
    356360                   | (( action & CURL_POLL_IN ) ? EV_READ : 0 )
     
    362366    event_set( &f->ev, sockfd, kind, event_cb, g );
    363367    f->evset = 1;
    364     event_add( &f->ev, NULL );
     368    tr_timevalMsec( DEFAULT_TIMER_MSEC, &tv );
     369    event_add( &f->ev, &tv );
    365370}
    366371
Note: See TracChangeset for help on using the changeset viewer.