]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MEDIUM: stream: isolate connection-specific initialization code
authorWilly Tarreau <w@1wt.eu>
Sat, 4 Apr 2015 23:30:42 +0000 (01:30 +0200)
committerWilly Tarreau <w@1wt.eu>
Mon, 6 Apr 2015 09:37:34 +0000 (11:37 +0200)
commitf2b9874bcf16eb99814c260f6efb645fbac8d1f9
tree9521553739f53a83e703269566b58fbd1dcfd634
parentce7eec91865655c7e325822621107e17b56cb2c8
MEDIUM: stream: isolate connection-specific initialization code

In stream_accept_session(), we perform some operations that explicitly
want a connection as the origin, but we'll soon have other types of
origin (eg: applet). Thus change the test to ensure we only call this
code with connections. Additionally, we refrain from calling fe->accept()
if the origin is not a connection, because for now the only fe->accept()
may only use a connection (frontend_accept).
src/stream.c