From 8ed07610b12542e0ece3560a5a6a538389fbc3a4 Mon Sep 17 00:00:00 2001 From: Olivier Houchard Date: Fri, 6 Feb 2026 09:29:14 +0100 Subject: [PATCH] MEDIUM: streams: Remove unnecessary call to srv_manage_queues() Remove the call to srv_manage_queues() at the beginning of strem_free(). It is not needed. Before cur_sess was removed, it was bogusly using it to check if the server was full, but process_srv_queue() was using served anyway, so cur_sess was not reliable. At this point, served has already be decremented, and process_srv_queue() was called, or it will be later in stream_free(), but there is no point in doing that at the beginning of steam_free(). --- src/stream.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/stream.c b/src/stream.c index fff757479..6f566794a 100644 --- a/src/stream.c +++ b/src/stream.c @@ -629,10 +629,6 @@ void stream_free(struct stream *s) pendconn_free(s); - if (objt_server(s->target)) { /* there may be requests left pending in queue */ - srv_manage_queues(__objt_server(s->target), s->be); - } - if (unlikely(s->srv_conn)) { struct server *oldsrv = s->srv_conn; /* the stream still has a reserved slot on a server, but