CLEANUP: stream: remove SF_TUNNEL, SF_INITIALIZED, SF_CONN_TAR
These flags haven't been used for a while. SF_TUNNEL was reintroduced
by commit d62b98c6e ("MINOR: stream: don't set backend's nor response
analysers on SF_TUNNEL") to handle the two-level streams needed to
deal with the first model for H2, and was not removed after this model
was abandonned. SF_INITIALIZED was only set. SF_CONN_TAR was never
referenced at all.
diff --git a/src/stream.c b/src/stream.c
index 7add3dc..2e8d755 100644
--- a/src/stream.c
+++ b/src/stream.c
@@ -199,7 +199,6 @@
s->buffer_wait.target = s;
s->buffer_wait.wakeup_cb = stream_buf_available;
- s->flags |= SF_INITIALIZED;
s->pcli_next_pid = 0;
s->pcli_flags = 0;
s->unique_id = NULL;
@@ -859,14 +858,12 @@
rep->flags |= CF_READ_DONTWAIT; /* a single read is enough to get response headers */
}
- if (!(s->flags & SF_TUNNEL)) {
- rep->analysers |= strm_fe(s)->fe_rsp_ana | s->be->be_rsp_ana;
+ rep->analysers |= strm_fe(s)->fe_rsp_ana | s->be->be_rsp_ana;
- /* Be sure to filter response headers if the backend is an HTTP proxy
- * and if there are filters attached to the stream. */
- if (s->be->mode == PR_MODE_HTTP && HAS_FILTERS(s))
- rep->analysers |= AN_RES_FLT_HTTP_HDRS;
- }
+ /* Be sure to filter response headers if the backend is an HTTP proxy
+ * and if there are filters attached to the stream. */
+ if (s->be->mode == PR_MODE_HTTP && HAS_FILTERS(s))
+ rep->analysers |= AN_RES_FLT_HTTP_HDRS;
si_rx_endp_more(si);
rep->flags |= CF_READ_ATTACHED; /* producer is now attached */