> On 28 авг. 2015 г., at 12:18, Lukas Tribus <luky...@hotmail.com> wrote: > >>> Use "option http-no-delay" [1] to disable Nagle unconditionally. >> >> >> This option requires HTTP mode, but I must use TCP mode because our >> protocol is not HTTP (some custom protocol over TCP) > > Ok, you may be hitting a bug. Can you provide haproxy -vv output? >
What do you mean? I get the following warning when trying to use this option in tcp backend/frontend: [WARNING] 239/121424 (71492) : config : 'option http-no-delay' ignored for frontend 'shard0-front' as it requires HTTP mode. [WARNING] 239/121424 (71492) : config : 'option http-no-delay' ignored for backend 'shard0-back' as it requires HTTP mode. So it is clear that this option is intended for HTTP mode only. For reference: HA-Proxy version 1.5.11 2015/01/31 Copyright 2000-2015 Willy Tarreau <w...@1wt.eu> Build options : TARGET = freebsd CPU = generic CC = cc CFLAGS = -O2 -pipe -O2 -fno-strict-aliasing -pipe -fstack-protector -DFREEBSD_PORTS OPTIONS = USE_GETADDRINFO=1 USE_ZLIB=1 USE_OPENSSL=1 USE_STATIC_PCRE=1 USE_PCRE_JIT=1 Default settings : maxconn = 2000, bufsize = 16384, maxrewrite = 8192, maxpollevents = 200 Encrypted password support via crypt(3): yes Built with zlib version : 1.2.8 Compression algorithms supported : identity, deflate, gzip Built with OpenSSL version : OpenSSL 1.0.1l-freebsd 15 Jan 2015 Running on OpenSSL version : OpenSSL 1.0.1l-freebsd 15 Jan 2015 OpenSSL library supports TLS extensions : yes OpenSSL library supports SNI : yes OpenSSL library supports prefer-server-ciphers : yes Built with PCRE version : 8.35 2014-04-04 PCRE library supports JIT : yes Built with transparent proxy support using: IP_BINDANY IPV6_BINDANY Available polling systems : kqueue : pref=300, test result OK poll : pref=200, test result OK select : pref=150, test result OK Total: 3 (3 usable), will use kqueue.