There was a race in relayd that caused connections to hang. It
authorbluhm <bluhm@openbsd.org>
Sun, 10 Aug 2014 21:55:17 +0000 (21:55 +0000)
committerbluhm <bluhm@openbsd.org>
Sun, 10 Aug 2014 21:55:17 +0000 (21:55 +0000)
commit1e4bf96a628f673b9f32e36ed9597bc7ef1538db
tree3323a72c6d20efcceae44e299808e9af04c76ae1
parent71254710449e54641b1d79f30185ae92c339257e
There was a race in relayd that caused connections to hang.  It
happend with non-persistent PUT connections that had a very short
body.  If the whole body was read from the client before the
connection to the server was set up, the event callback was not
called.  Do the regular checks after relay_connect() succeeded.
OK reyk@
usr.sbin/relayd/relay_http.c