Changeset 6847


Ignore:
Timestamp:
Oct 3, 2008, 11:20:44 PM (13 years ago)
Author:
charles
Message:

(rpc) #1319: possible fix for the deflate bug

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/rpc-server.c

    r6846 r6847  
    247247
    248248    if( !err ) {
    249         tr_ninf( MY_NAME, "deflated response from %zu bytes to %zu\n",
     249        tr_ninf( MY_NAME, "deflated response from %zu bytes to %zu",
    250250                          EVBUFFER_LENGTH( evbuf ),
    251251                          EVBUFFER_LENGTH( out ) );
     
    293293        {
    294294            struct evbuffer * buf = evbuffer_new( );
    295             evbuffer_read( buf, fd, INT_MAX );
     295            for( ;; )
     296                if( evbuffer_read( buf, fd, INT_MAX ) < 1 )
     297                    break;
    296298            evhttp_add_header( req->output_headers, "Content-Type",
    297299                              mimetype_guess(
Note: See TracChangeset for help on using the changeset viewer.