Changeset 5709


Ignore:
Timestamp:
Apr 27, 2008, 7:15:20 AM (14 years ago)
Author:
charles
Message:

curl_easy_getopt(CURLINFO_RESPONSE_CODE) needs a pointer to a long, not an int.

Location:
trunk/libtransmission
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/tracker.c

    r5697 r5709  
    6363
    6464    /* the value of the 'numwant' argument passed in tracker requests. */
    65     NUMWANT = 150,
     65    NUMWANT = 80,
    6666
    6767    /* the length of the 'key' argument passed in tracker requests */
  • trunk/libtransmission/web.c

    r5705 r5709  
    7575        if( easy ) {
    7676            struct tr_web_task * task;
    77             int response_code;
     77            long response_code;
    7878            curl_easy_getinfo( easy, CURLINFO_PRIVATE, &task );
    7979            curl_easy_getinfo( easy, CURLINFO_RESPONSE_CODE, &response_code );
     
    8585                             EVBUFFER_LENGTH(task->response),
    8686                             task->done_func_user_data );
    87 
    8887            curl_multi_remove_handle( web->cm, easy );
    8988            curl_easy_cleanup( easy );
     
    128127    CURL * ch;
    129128
    130     dbgmsg( "adding task #%lu [%s]", task->tag, task->url );
    131129    ++web->remain;
     130    dbgmsg( "adding task #%lu [%s] (%d remain)", task->tag, task->url, web->remain );
    132131
    133132    ch = curl_easy_init( );
     
    210209    if( action == CURL_POLL_REMOVE ) {
    211210        if( ev ) {
     211            dbgmsg( "deleting libevent socket polling" );
    212212            event_del( ev );
    213213            tr_free( ev );
     
    307307    curl_multi_setopt( web->cm, CURLMOPT_MAXCONNECTS, 10 );
    308308#endif
    309 #if CURL_CHECK_VERSION(7,16,0)
    310     curl_multi_setopt( web->cm, CURLMOPT_PIPELINING, 1 );
    311 #endif
    312309    pump( web );
    313310
     
    318315tr_webClose( tr_web * web )
    319316{
     317    dbgmsg( "deleting web->timer" );
    320318    evtimer_del( &web->timer );
    321319    curl_multi_cleanup( web->cm );
Note: See TracChangeset for help on using the changeset viewer.