Ignore:
Timestamp:
Dec 20, 2010, 2:07:51 AM (11 years ago)
Author:
charles
Message:

(trunk) #3836 "libevent2 support" -- bump libevent2 requirement to 2.0.10. This will break the Mac build for a minute intil BMW applies his Mac patch

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/web.c

    r11512 r11548  
    1818
    1919#include <curl/curl.h>
    20 #include <event.h>
     20
     21#include <event2/buffer.h>
    2122
    2223#include "transmission.h"
     
    193194        task->done_func( task->session,
    194195                         task->code,
    195                          EVBUFFER_DATA( task->response ),
    196                          EVBUFFER_LENGTH( task->response ),
     196                         evbuffer_pullup( task->response, -1 ),
     197                         evbuffer_get_length( task->response ),
    197198                         task->done_func_user_data );
    198199
     
    351352                curl_multi_remove_handle( multi, e );
    352353                curl_easy_cleanup( e );
    353 /*fprintf( stderr, "removing a completed task.. taskCount is now %d (response code: %d, response len: %d)\n", taskCount, (int)task->code, (int)EVBUFFER_LENGTH(task->response) );*/
     354/*fprintf( stderr, "removing a completed task.. taskCount is now %d (response code: %d, response len: %d)\n", taskCount, (int)task->code, (int)evbuffer_get_length(task->response) );*/
    354355                tr_runInEventThread( task->session, task_finish_func, task );
    355356                --taskCount;
Note: See TracChangeset for help on using the changeset viewer.