-
Type: New Feature
-
Resolution: Done
-
Priority: Major - P3
-
Affects Version/s: None
-
Component/s: Networking
-
Fully Compatible
-
Platforms 2017-06-19, Platforms 2017-07-10, Platforms 2017-07-31, Platforms 2017-08-21, Platforms 2017-09-11
Currently when compression is enabled, and negotiated in the initial handshake, all replies from the server will be compressed, regardless if the request coming into the server was compressed or not.
There appears to be no way to toggle replies to be compressed or not.
With snappy, this isn't much of an issue as compressing small data doesn't incur "to much overhead", but its a bit weird, and with zlib, this might be counterproductive.
There should be a way for the request to determine if the reply should be compressed or not.
This might be through a field in the flagBits header for OP_COMMAND, or simply based on the originating opcode
- is related to
-
SERVER-25620 Compression of wire protocol for Clients
- Closed
-
SERVER-27310 Add support for zlib wire protocol compression
- Closed