mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-01-22 21:37:17 +01:00
set max compression for SessionConfirmed
This commit is contained in:
parent
b0d962b49a
commit
f1d3d6a7b5
|
@ -1885,6 +1885,7 @@ namespace transport
|
|||
else
|
||||
{
|
||||
i2p::data::GzipDeflator deflator;
|
||||
deflator.SetCompressionLevel (9);
|
||||
size = deflator.Deflate (r->GetBuffer (), r->GetBufferLen (), buf + 5, len - 5);
|
||||
if (!size) return 0; // doesn't fit
|
||||
buf[3] = SSU2_ROUTER_INFO_FLAG_GZIP; // flag
|
||||
|
|
Loading…
Reference in a new issue