diff --git a/include/proto/buffers.h b/include/proto/buffers.h index a20ae8ba1..cec7b02fb 100644 --- a/include/proto/buffers.h +++ b/include/proto/buffers.h @@ -163,20 +163,6 @@ static inline void buffer_cut_tail(struct buffer *buf) buf->flags |= BF_FULL; } -/* marks the buffer as "shutdown" for reads and cancels the timeout */ -static inline void buffer_shutr(struct buffer *buf) -{ - buf->rex = TICK_ETERNITY; - buf->flags |= BF_SHUTR; -} - -/* marks the buffer as "shutdown" for writes and cancels the timeout */ -static inline void buffer_shutw(struct buffer *buf) -{ - buf->wex = TICK_ETERNITY; - buf->flags |= BF_SHUTW; -} - /* marks the buffer as "shutdown" ASAP for reads */ static inline void buffer_shutr_now(struct buffer *buf) { diff --git a/src/dumpstats.c b/src/dumpstats.c index f9d8785b4..b34b84997 100644 --- a/src/dumpstats.c +++ b/src/dumpstats.c @@ -467,11 +467,10 @@ void stats_io_handler(struct stream_interface *si) s->ana_state = STATS_ST_REQ; } else if (s->ana_state == STATS_ST_CLOSE) { - /* let's close for real now. Note that we may as well - * call shutw+shutr, but this is enough since the shut - * conditions below will complete. + /* Let's close for real now. We just close the request + * side, the conditions below will complete if needed. */ - buffer_shutw(si->ob); + si->shutw(si); s->ana_state = 0; break; }