Introduce a state on the ctl_relay_event struct. This makes it possible
authorclaudio <claudio@openbsd.org>
Mon, 8 Jun 2015 15:47:51 +0000 (15:47 +0000)
committerclaudio <claudio@openbsd.org>
Mon, 8 Jun 2015 15:47:51 +0000 (15:47 +0000)
commitf20bb366e3e93c1e3034d596aebe7317fcbca4f2
tree742ac742434918b1df82c97b24ad9c2f72843671
parentee62850c1e2c72628d7db9844c3b1a141f68b18e
Introduce a state on the ctl_relay_event struct. This makes it possible
to better track the connection state of a session and stops doing double
opens in certain situations using http relays. Using a state field to
simplify the logic since relay_connect() is called multiple times.
OK benno@, bluhm@ and running in production for more than a week
usr.sbin/relayd/relay.c
usr.sbin/relayd/relay_http.c
usr.sbin/relayd/relayd.h