diff options
author | Ed Tanous <edtanous@google.com> | 2021-02-01 20:52:17 +0300 |
---|---|---|
committer | Ed Tanous <ed@tanous.net> | 2021-02-20 21:31:23 +0300 |
commit | 2aee6ca297bfd0ee102515005d3162e3492600a0 (patch) | |
tree | 7156c457e9b44df8536b05d36f348feb4d07828e /http/websocket.hpp | |
parent | 0260d9d6b252d5fef81a51d4797e27a6893827f4 (diff) | |
download | bmcweb-2aee6ca297bfd0ee102515005d3162e3492600a0.tar.xz |
Remove permessage deflate from the build
New versions of beast allow completely removing the per-message deflate
functionality from the binary, thus saving space. Considering we never
used it, it seems worthwhile to remove from the build entirely.
This should have no impact on any external interface.
https://www.boost.org/doc/libs/1_75_0/libs/beast/doc/html/beast/using_websocket.html
Tested:
Build before and after, ~31k of pre-compression binary space saved when
this patchset is included.
Also ran scripts/websocket_test.py
python3 websocket_test.py --host 192.168.7.2
CPU 67.56
Memory 5.95
and saw sensor values stream correctly.
Signed-off-by: Ed Tanous <edtanous@google.com>
Change-Id: I3d8e5febea2446eb4894a840f7fe7ef9cdf6995b
Diffstat (limited to 'http/websocket.hpp')
-rw-r--r-- | http/websocket.hpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/http/websocket.hpp b/http/websocket.hpp index 446db1b3f4..40fbcc01b4 100644 --- a/http/websocket.hpp +++ b/http/websocket.hpp @@ -267,7 +267,7 @@ class ConnectionImpl : public Connection } private: - boost::beast::websocket::stream<Adaptor> ws; + boost::beast::websocket::stream<Adaptor, false> ws; std::string inString; boost::asio::dynamic_string_buffer<std::string::value_type, |