MEDIUM: conn-stream: Pre-allocate endpoint to create CS from muxes and applets
It is a transient commit to prepare next changes. Now, when a conn-stream is
created from an applet or a multiplexer, an endpoint is always provided. In
addition, the API to create a conn-stream was specialized to have one
function per type.
The next step will be to share the endpoint structure.
diff --git a/src/mux_fcgi.c b/src/mux_fcgi.c
index ea956b3..e18d9ab 100644
--- a/src/mux_fcgi.c
+++ b/src/mux_fcgi.c
@@ -1130,7 +1130,7 @@
TRACE_ERROR("fstream allocation failure", FCGI_EV_FSTRM_NEW|FCGI_EV_FSTRM_END|FCGI_EV_FSTRM_ERR, fconn->conn);
goto out;
}
- cs_attach_endp_mux(cs, fstrm, fconn->conn);
+ cs_attach_mux(cs, fstrm, fconn->conn);
fstrm->cs = cs;
fstrm->sess = sess;
fconn->nb_cs++;