BUG/MEDIUM: mux_pt: Don't destroy the connection if we have a stream attached.
authorOlivier Houchard <cognet@ci0.org>
Fri, 18 Oct 2019 11:56:40 +0000 (13:56 +0200)
committerOlivier Houchard <cognet@ci0.org>
Fri, 18 Oct 2019 12:07:22 +0000 (14:07 +0200)
commitea510fc5e7cf8ead040253869160b0d2266ce65f
tree3c7ff0bb49ac79c7d3019d96d32976c696f085f4
parent9dce2c53a8e49d43b501c3025d41705d302b1df1
BUG/MEDIUM: mux_pt: Don't destroy the connection if we have a stream attached.

There's a small window where the mux_pt tasklet may be woken up, and thus
mux_pt_io_cb() get scheduled, and then the connection is attached to a new
stream. If this happen, don't do anything, and just let the stream know
by calling its wake method. If the connection had an error, the stream should
take care of destroying it by calling the detach method.

This should be backported to 2.0 and 1.9.
src/mux_pt.c