[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, 15 Oct 2007 07:32:07 +0000 (09:32 +0200)
commit3d08953ce0ff4cc438a14642c0cfdf6040df3b80
tree5282623f1977c7e4b535265432f87e80bed195ff
parent193cf93ec0dd29a2c82fa5fd6239709d120ea1c0
[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