Skip to content

Commit 5f57840

Browse files
committed
[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.
1 parent 6d9ddbe commit 5f57840

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

net/http/src/THttpServer.cxx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1301,8 +1301,10 @@ Bool_t THttpServer::ExecuteWS(std::shared_ptr<THttpCallArg> &arg, Bool_t externa
13011301
return kTRUE;
13021302
}
13031303

1304-
if (!handler)
1304+
if (!handler) {
1305+
arg->Set404();
13051306
return kFALSE;
1307+
}
13061308

13071309
Bool_t process = kFALSE;
13081310

0 commit comments

Comments
 (0)