Changeset 9899


Ignore:
Timestamp:
Jan 9, 2010, 7:27:45 AM (12 years ago)
Author:
charles
Message:

(trunk libT) #2416 "crash in event_queue_insert" -- see if we can get the program to crash in a different way.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/web.c

    r9895 r9899  
    8585    struct event timer_event;
    8686    CURL * easy;
     87    CURLM * multi;
    8788};
    8889
     
    186187
    187188        task->easy = e;
     189        task->multi = web->multi;
    188190
    189191        /* use our own timeout instead of CURLOPT_TIMEOUT because the latter
     
    241243{
    242244    long code;
    243     tr_web * g = task->session->web;
    244245
    245246    curl_easy_getinfo( task->easy, CURLINFO_RESPONSE_CODE, &code );
    246     curl_multi_remove_handle( g->multi, task->easy );
     247    curl_multi_remove_handle( task->multi, task->easy );
    247248    curl_easy_cleanup( task->easy );
    248249    task_finish( task, code );
     
    339340                ev_what, curl_what, io_event, fd );
    340341        event_set( io_event, fd, ev_what, event_cb, web );
     342        assert( io_event->ev_base != NULL );
    341343        event_add( io_event, NULL );
    342344    }
     
    345347    {
    346348        CURLMcode m;
     349        memset( io_event, TR_MEMORY_TRASH, sizeof( struct event ) );
    347350        tr_free( io_event );
    348351        m = curl_multi_assign( web->multi, fd, NULL );
Note: See TracChangeset for help on using the changeset viewer.