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