Changeset 7833


Ignore:
Timestamp:
Feb 6, 2009, 9:14:05 PM (12 years ago)
Author:
charles
Message:

(trunk libT) #1748 keep looking for a workaround

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/web.c

    r7832 r7833  
    264264        if( easy ) {
    265265            long code;
     266            long fd;
    266267            struct tr_web_task * task;
    267268            CURLcode ecode;
    268269            CURLMcode mcode;
     270
    269271            ecode = curl_easy_getinfo( easy, CURLINFO_PRIVATE, (void*)&task );
    270272            tr_assert( ecode == CURLE_OK, "curl_easy_getinfo() failed: %d (%s)", ecode, curl_easy_strerror( ecode ) );
     273
    271274            ecode = curl_easy_getinfo( easy, CURLINFO_RESPONSE_CODE, &code );
    272275            tr_assert( ecode == CURLE_OK, "curl_easy_getinfo() failed: %d (%s)", ecode, curl_easy_strerror( ecode ) );
     276
     277            ecode = curl_easy_getinfo( easy, CURLINFO_LASTSOCKET, &fd );
     278            tr_assert( ecode == CURLE_OK, "curl_easy_getinfo() failed: %d (%s)", ecode, curl_easy_strerror( ecode ) );
     279            if( fd != -1L )
     280                purgeSockinfo( g, fd );
     281
    273282            mcode = curl_multi_remove_handle( g->multi, easy );
    274283            tr_assert( mcode == CURLM_OK, "curl_multi_socket_action() failed: %d (%s)", mcode, curl_multi_strerror( mcode ) );
     284
    275285            curl_easy_cleanup( easy );
    276286            task_finish( task, code );
Note: See TracChangeset for help on using the changeset viewer.