Skip to content

Commit 68a7381

Browse files
authored
[Serve] Ignore cancel request when receving websocket.accept message (#39413) (#39626)
From application to client, it is sending `websocket.accept` message. https://asgi.readthedocs.io/en/latest/specs/www.html#accept-send-event
1 parent 40e292d commit 68a7381

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

python/ray/serve/_private/http_proxy.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1236,7 +1236,7 @@ async def _consume_and_send_asgi_message_generator(
12361236
# field. Other response types (e.g., WebSockets) may not.
12371237
status_code = str(asgi_message["status"])
12381238
expecting_trailers = asgi_message.get("trailers", False)
1239-
elif asgi_message["type"] == "websocket.connect":
1239+
elif asgi_message["type"] == "websocket.accept":
12401240
is_websocket_connection = True
12411241
elif (
12421242
asgi_message["type"] == "http.response.body"

0 commit comments

Comments
 (0)