diff options
author | Michael Veksler <Mihails.Vekslers@zabbix.com> | 2019-11-04 13:03:08 +0300 |
---|---|---|
committer | Michael Veksler <Mihails.Vekslers@zabbix.com> | 2019-11-04 13:04:29 +0300 |
commit | 6c31b660ae940af59ae849507e416505fe521099 (patch) | |
tree | c0753d3adc229f5c0887ec0b7c2ec91bc472813f /include/comms.h | |
parent | 6f0fabae9527f1d2175b5eb606e37fb7db8d8914 (diff) |
...G...PS. [ZBXNEXT-5543] added compression support for Zabbix agent 2
* commit 'c4285de0aeeaea16c1ace9bb5811b92b3d471dfd':
.......... [ZBXNEXT-5543] added ChangeLog file
...G...... [DEV-1162] remove unused function
...G...... [DEV-1162] send compressed response for compressed history values received from agent or sender
...G...... [DEV-1162] compressing server answer for compressed agent request
...G...... [DEV-1162] revert debug changes
...G...... [DEV-1162] fixed works with flags
...G...... [DEV-1162] agent2 compression support
(cherry picked from commit 7dbbf71d1165c4965fc196eea24e8e44fee68f22)
Diffstat (limited to 'include/comms.h')
-rw-r--r-- | include/comms.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/comms.h b/include/comms.h index a0c3b3e5e1e..52745b05772 100644 --- a/include/comms.h +++ b/include/comms.h @@ -190,6 +190,9 @@ int zbx_send_response_ext(zbx_socket_t *sock, int result, const char *info, cons #define zbx_send_response(sock, result, info, timeout) \ zbx_send_response_ext(sock, result, info, NULL, ZBX_TCP_PROTOCOL, timeout) +#define zbx_send_response_same(sock, result, info, timeout) \ + zbx_send_response_ext(sock, result, info, NULL, sock->protocol, timeout) + #define zbx_send_proxy_response(sock, result, info, timeout) \ zbx_send_response_ext(sock, result, info, ZABBIX_VERSION, ZBX_TCP_PROTOCOL | ZBX_TCP_COMPRESS, timeout) |