0
0
mirror of https://github.com/OpenVPN/openvpn3.git synced 2024-09-20 12:12:15 +02:00
openvpn3/openvpn/common/complog.hpp
James Yonan 341d983734
JsonClient/AppServer: full HTTP compression support
* gzip or lz4 supported for standard HTTP.

* lz4 support for websocket.

Signed-off-by: James Yonan <james@openvpn.net>
2020-01-09 12:23:05 +02:00

17 lines
382 B
C++

// OpenVPN
//
// Copyright (C) 2012-2017 OpenVPN Technologies, Inc.
// All rights reserved.
#pragma once
namespace openvpn {
inline void log_compress(const std::string prefix, const size_t orig_size, const size_t new_size)
{
OPENVPN_LOG(prefix
<< ' ' << orig_size
<< " -> " << new_size
<< " -- compression ratio: " << double(orig_size) / double(new_size));
}
}