diff --git a/src/server.c b/src/server.c index c0795c0a5..58862c5a1 100644 --- a/src/server.c +++ b/src/server.c @@ -2027,6 +2027,9 @@ void srv_shutdown_streams(struct server *srv, int why) MT_LIST_FOR_EACH_ENTRY_LOCKED(stream, &srv->per_thr[thr].streams, by_srv, back) if (stream->srv_conn == srv) stream_shutdown(stream, why); + + /* also kill the possibly pending streams in the queue */ + pendconn_redistribute(srv); } /* Shutdown all connections of all backup servers of a proxy. The caller must