]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: raw-sock: don't try to send if an error was already reported
authorWilly Tarreau <w@1wt.eu>
Mon, 29 Aug 2022 14:48:14 +0000 (16:48 +0200)
committerWilly Tarreau <w@1wt.eu>
Mon, 29 Aug 2022 16:45:27 +0000 (18:45 +0200)
commitc6fc77404e70d62e8b425568c55dc971cbd516d7
tree4339c8a1c4db4553cf4176e206ecb7c4ed5a1ef3
parent2c30de3b9053500b5ee2d72aad15a243c2b8a955
MINOR: raw-sock: don't try to send if an error was already reported

There's no point trying to send() on a socket on which an error was already
reported. This wastes syscalls. Till now it was possible to occasionally
see an attempt to sendto() after epoll_wait() had reported EPOLLERR.
src/raw_sock.c