[BUG] stats: don't call buffer_shutw(), but ->shutw() instead
authorWilly Tarreau <w@1wt.eu>
Sun, 4 Oct 2009 07:16:41 +0000 (09:16 +0200)
committerWilly Tarreau <w@1wt.eu>
Sun, 4 Oct 2009 07:19:36 +0000 (09:19 +0200)
commit33b230b34ae4f0646b6d16576b8d394b5153ae8f
tree9ad598661b17c77b28b42d6edaccd44e62203bb9
parentf27b5ea8dc615bd2a9ffaba90ba3dda66567dbc4
[BUG] stats: don't call buffer_shutw(), but ->shutw() instead

Calling buffer_shutw() marks the buffer as closed but if it was already
closed in the other direction, the stream interface is not marked as
closed, causing infinite loops.

We took this opportunity to completely remove buffer_shutw() and buffer_shutr()
which have no reason to be used at all and which will always cause trouble
when directly called. The stats occurrence was the last one.
include/proto/buffers.h
src/dumpstats.c