diff --git a/src/stream.c b/src/stream.c index c78c6a10a..4e87aab54 100644 --- a/src/stream.c +++ b/src/stream.c @@ -1489,6 +1489,10 @@ int stream_set_http_mode(struct stream *s, const struct mux_proto_list *mux_prot return 0; conn = sc_conn(sc); + + if (!sc_conn_ready(sc)) + return 0; + if (conn) { se_have_more_data(s->scf->sedesc); /* Make sure we're unsubscribed, the the new