]> git.kaiwu.me - haproxy.git/commit
[MINOR] set the log socket receive window to zero bytes
authorWilly Tarreau <w@1wt.eu>
Mon, 17 Sep 2007 08:56:13 +0000 (10:56 +0200)
committerWilly Tarreau <w@1wt.eu>
Mon, 17 Sep 2007 08:56:13 +0000 (10:56 +0200)
commit530b9dde00565e8a9cf4654fa408f7dc69cdb590
treea7420a7ef999c20e64717ae32d68f4c20c3f5153
parent7c1ffc1e8f06bf13ceec4c238054611cf9371ab8
[MINOR] set the log socket receive window to zero bytes

The syslog UDP socket may receive data, which is not cool because those
data accumulate in the system buffers up to the receive socket buffer size.
To prevent this, we set the receive window to zero and try to shutdown(SHUT_RD)
the socket.
src/log.c