diff --git a/include/proto/stream_interface.h b/include/proto/stream_interface.h index 5d0b254f6..39a4f9ef5 100644 --- a/include/proto/stream_interface.h +++ b/include/proto/stream_interface.h @@ -150,6 +150,7 @@ static inline void si_reset(struct stream_interface *si) si->flags &= SI_FL_ISBACK; si->end = NULL; si->state = si->prev_state = SI_ST_INI; + si->ops = &si_embedded_ops; } /* sets the current and previous state of a stream interface to . This @@ -182,12 +183,12 @@ static inline void si_release_endpoint(struct stream_interface *si) appctx_free(appctx); /* we share the connection pool */ } si->end = NULL; + si->ops = &si_embedded_ops; } static inline void si_detach(struct stream_interface *si) { si_release_endpoint(si); - si->ops = &si_embedded_ops; } /* Turn a possibly existing connection endpoint of stream interface to