BUG/MEDIUM: peers: on shutdown, wake up the appctx, not the stream
authorWilly Tarreau <w@1wt.eu>
Mon, 31 Oct 2016 16:32:20 +0000 (17:32 +0100)
committerWilly Tarreau <w@1wt.eu>
Mon, 31 Oct 2016 19:01:42 +0000 (20:01 +0100)
commit78c0c50705a5e9d48607b9377adf030bb9d97b34
treec4e7784cbc5689bd6bed3565540bf9008e7b6999
parent7c2be1f34a09f1371a4472277199562df55ef9c5
BUG/MEDIUM: peers: on shutdown, wake up the appctx, not the stream

This part was missed when peers were ported to the new applet
infrastructure in 1.6, the main stream is woken up instead of the
appctx. This creates a race condition by which it is possible to
wake the stream at the wrong moment and miss an event. This bug
might be at least partially responsible for some of the CLOSE_WAIT
that were reported on peers session upon reload in version 1.6.

This fix must be backported to 1.6.
src/peers.c