Changeset 10962 for branches


Ignore:
Timestamp:
Jul 7, 2010, 4:31:08 PM (12 years ago)
Author:
charles
Message:

(2.0x libT) #3399 "tr_ioTestPiece() can be faster" -- fixed

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.0x/libtransmission/inout.c

    r10905 r10962  
    284284    uint32_t offset = 0;
    285285    tr_bool  success = TRUE;
    286     uint8_t * buffer = tr_sessionGetBuffer( tor->session );
    287     const size_t buflen = SESSION_BUFFER_SIZE;
     286    const size_t buflen = 1024 * 256; /* 256 KiB buffer */
     287    void * buffer = tr_valloc( buflen );
    288288    SHA_CTX  sha;
    289289
     
    313313        SHA1_Final( setme, &sha );
    314314
    315     tr_sessionReleaseBuffer( tor->session );
     315    tr_free( buffer );
    316316    return success;
    317317}
Note: See TracChangeset for help on using the changeset viewer.