From ea945e863c0e538ed3bc66f6fde522e6327b0274 Mon Sep 17 00:00:00 2001 From: Con Kolivas Date: Sat, 2 Jan 2016 11:03:04 +1100 Subject: [PATCH] Reinstate mtu size for compression to clients --- src/connector.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/connector.c b/src/connector.c index 0f7633fb..2a9500cf 100644 --- a/src/connector.c +++ b/src/connector.c @@ -1003,7 +1003,7 @@ static void send_client(cdata_t *cdata, const int64_t id, char *buf) /* Does this client accept compressed data? Only compress if it's * larger than one MTU. */ - if (client->gz) { + if (client->gz && len > 1492) { unsigned long compsize, decompsize = len; uint32_t msglen; char *dest;