From cef5b38087ed86c3e8ebe4ce630ab12a33e6cd81 Mon Sep 17 00:00:00 2001 From: Bostjan Meglic Date: Thu, 9 Feb 2023 09:38:18 +0000 Subject: [PATCH] [SBI] Do not treat removed streams as errors when sending responses This is in line with the implementation with microhttpd server (mhd-server.c). --- lib/sbi/nghttp2-server.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/sbi/nghttp2-server.c b/lib/sbi/nghttp2-server.c index 36b91c0bf..9b66d0bb0 100644 --- a/lib/sbi/nghttp2-server.c +++ b/lib/sbi/nghttp2-server.c @@ -406,7 +406,7 @@ static bool server_send_rspmem_persistent( stream = ogs_pool_cycle(&stream_pool, stream); if (!stream) { ogs_error("stream has already been removed"); - return false; + return true; } sbi_sess = stream->session;