Ignore:
Timestamp:
Aug 4, 2010, 11:19:38 PM (11 years ago)
Author:
charles
Message:

(trunk libT) #3486 "Add gzip compression support to RPC server" -- minor tweaks to the compression settings.

File:
1 edited

Legend:

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

    r11116 r11119  
    335335            server->stream.zfree = (free_func) Z_NULL;
    336336            server->stream.opaque = (voidpf) Z_NULL;
    337             server->stream.data_type = Z_ASCII;
    338337
    339338            /* zlib's manual says: "Add 16 to windowBits to write a simple gzip header
    340339             * and trailer around the compressed data instead of a zlib wrapper." */
    341             deflateInit2( &server->stream, Z_BEST_COMPRESSION, Z_DEFLATED, 15+16, 9, Z_DEFAULT_STRATEGY );
     340            deflateInit2( &server->stream, Z_DEFAULT_COMPRESSION, Z_DEFLATED, 15+16, 8, Z_DEFAULT_STRATEGY );
    342341        }
    343342
Note: See TracChangeset for help on using the changeset viewer.