BUG/MEDIUM: mux_h1: Process a new request if we already received it.
authorOlivier Houchard <cognet@ci0.org>
Wed, 25 Mar 2020 11:24:11 +0000 (12:24 +0100)
committerOlivier Houchard <cognet@ci0.org>
Wed, 25 Mar 2020 11:38:40 +0000 (12:38 +0100)
commit69664419d209d2f64dbcd90f991e7ec2efff2ee2
tree54faa5cdb5fb993b53f8e26b6f151e0cfab8dcac
parent3e128fe973679c03d3eea0bf1231a20a7384fe70
BUG/MEDIUM: mux_h1: Process a new request if we already received it.

In h1_detach(), if our input buffer isn't empty, don't just subscribe(), we
may hold a new request, and there's nothing left to read. Instead, call
h1_process() directly, so that a new stream is created.
Failure to do so means if we received the new request to early, the
connecetion will just hang, as it happens when using svn.
src/mux_h1.c