Skip to content

Commit b10e77e

Browse files
linevdpiparo
authored andcommitted
[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 5f57840)
1 parent dcab0d9 commit b10e77e

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
@@ -1128,8 +1128,10 @@ Bool_t THttpServer::ExecuteWS(std::shared_ptr<THttpCallArg> &arg, Bool_t externa
11281128
return kTRUE;
11291129
}
11301130

1131-
if (!handler)
1131+
if (!handler) {
1132+
arg->Set404();
11321133
return kFALSE;
1134+
}
11331135

11341136
Bool_t process = kFALSE;
11351137

0 commit comments

Comments
 (0)