diff --git a/harbour/ChangeLog b/harbour/ChangeLog index 2eab22ce5c..1cd15542eb 100644 --- a/harbour/ChangeLog +++ b/harbour/ChangeLog @@ -16,6 +16,11 @@ The license applies to all entries newer than 2009-04-28. */ +2011-03-29 08:05 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl) + * harbour/src/rtl/hbznet.c + % use Z_PARTIAL_FLUSH instead of Z_SYNC_FLUSH in hb_znetFlush() + It should reduce a little bit the size of compressed data stream. + 2011-03-28 12:13 UTC+0200 Viktor Szakats (harbour.01 syenar.hu) * contrib/hbgs/core.c ! Fixed C++ warning. diff --git a/harbour/src/rtl/hbznet.c b/harbour/src/rtl/hbznet.c index 6aa69dcaaa..7f8187f359 100644 --- a/harbour/src/rtl/hbznet.c +++ b/harbour/src/rtl/hbznet.c @@ -367,7 +367,7 @@ long hb_znetFlush( PHB_ZNETSTREAM pStream, HB_SOCKET sd, HB_MAXINT timeout ) uInt uiSize = HB_ZNET_BUFSIZE - ( pStream->crypt ? 2 : 0 ); if( pStream->wr.avail_out > 0 ) - pStream->err = deflate( &pStream->wr, Z_SYNC_FLUSH ); + pStream->err = deflate( &pStream->wr, Z_PARTIAL_FLUSH ); else pStream->err = Z_OK; @@ -377,7 +377,7 @@ long hb_znetFlush( PHB_ZNETSTREAM pStream, HB_SOCKET sd, HB_MAXINT timeout ) break; if( pStream->err == Z_OK ) - pStream->err = deflate( &pStream->wr, Z_SYNC_FLUSH ); + pStream->err = deflate( &pStream->wr, Z_PARTIAL_FLUSH ); } return uiSize - pStream->wr.avail_out;