]> git.ipfire.org Git - thirdparty/haproxy.git/commit
OPTIM/MINOR: mark the source address as already known on accept()
authorWilly Tarreau <w@1wt.eu>
Fri, 15 Nov 2013 23:15:40 +0000 (00:15 +0100)
committerWilly Tarreau <w@1wt.eu>
Fri, 15 Nov 2013 23:17:59 +0000 (00:17 +0100)
commit38d5892634a2101285653e90fc59e2fb6484a9f0
tree2af9c909c194fb8ff5aac1db61fbeef0a12df34a
parent2f877304ef180654d165bf4ba8c88c204fc09d36
OPTIM/MINOR: mark the source address as already known on accept()

Commit 986a9d2d12 moved the source address from the stream interface
to the session, but it did not set the flag on the connection to
report that the source address is known. Thus when logs are enabled,
we had a call to getpeername() which is redundant with the result
from accept(). This patch simply sets the flag.
src/session.c