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.
This commit is contained in:
@@ -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.
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user