From aba32228fc712e4f0b02969b2728412a6ceefde9 Mon Sep 17 00:00:00 2001 From: Sergey Linev Date: Fri, 8 May 2026 08:24:53 +0200 Subject: [PATCH] [http] discard web socket connection without handler If no any handler was found - http request associated with specified web socket can be directly discarded. Connection was established - but was not handled in the ROOT. (cherry picked from commit 5f57840ac2bc813373581fbcf37667430ca8dffa) --- net/http/src/THttpServer.cxx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/net/http/src/THttpServer.cxx b/net/http/src/THttpServer.cxx index 8f1f4ede4e28f..24adc3b7a35e2 100644 --- a/net/http/src/THttpServer.cxx +++ b/net/http/src/THttpServer.cxx @@ -1224,8 +1224,10 @@ Bool_t THttpServer::ExecuteWS(std::shared_ptr &arg, Bool_t externa return kTRUE; } - if (!handler) + if (!handler) { + arg->Set404(); return kFALSE; + } Bool_t process = kFALSE;