]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MEDIUM: backend: move the connection finalization step to back_handle_st_con()
authorWilly Tarreau <w@1wt.eu>
Fri, 10 Jan 2020 05:17:03 +0000 (06:17 +0100)
committerWilly Tarreau <w@1wt.eu>
Fri, 17 Jan 2020 17:30:36 +0000 (18:30 +0100)
commit062df2c23ab509b507484e3e9bcf232699077fd8
treeec5d63836bfb60cfc3fe0b3c4c1d0d84dcde1668
parent3a9312af8f326a035f7227224e780ecffc0c96fb
MEDIUM: backend: move the connection finalization step to back_handle_st_con()

Currently there's still lots of code in conn_complete_server() that performs
one half of the connection setup, which is then checked and finalized in
back_handle_st_con(). There isn't a valid reason for this anymore, we can
simplify this and make sure that conn_complete_server() only wakes the stream
up to inform it about the fact the whole connection stack is set up so that
back_handle_st_con() finishes its job at the stream-int level.

It looks like the there could even be further simplified, but for now it
was moved straight out of conn_complete_server() with no modification.
src/backend.c