]> git.kaiwu.me - haproxy.git/commit
[MINOR] add the ability to force kernel socket buffer size.
authorWilly Tarreau <w@1wt.eu>
Thu, 21 Jan 2010 16:43:04 +0000 (17:43 +0100)
committerWilly Tarreau <w@1wt.eu>
Fri, 22 Jan 2010 10:49:41 +0000 (11:49 +0100)
commite803de2c6baf07b95a4432f1c99af8ac761f58be
tree8f0586cc2e5b5d6a0346b8a49696a8e983f30e53
parent6046652253fb1a0bfc21d61e579463eeb821bc5f
[MINOR] add the ability to force kernel socket buffer size.

Sometimes we need to be able to change the default kernel socket
buffer size (recv and send). Four new global settings have been
added for this :
   - tune.rcvbuf.client
   - tune.rcvbuf.server
   - tune.sndbuf.client
   - tune.sndbuf.server

Those can be used to reduce kernel memory footprint with large numbers
of concurrent connections, and to reduce risks of write timeouts with
very slow clients due to excessive kernel buffering.
doc/configuration.txt
include/types/global.h
src/cfgparse.c
src/client.c
src/proto_tcp.c