We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 14a8d87 commit ea5f5cdCopy full SHA for ea5f5cd
src/replit_river/v2/session.py
@@ -26,6 +26,7 @@
26
from opentelemetry.trace import Span, use_span
27
from opentelemetry.trace.propagation.tracecontext import TraceContextTextMapPropagator
28
from pydantic import ValidationError
29
+from websockets import ConnectionClosedOK
30
from websockets.asyncio.client import ClientConnection
31
from websockets.exceptions import ConnectionClosed
32
@@ -1119,6 +1120,9 @@ async def websocket_closed_callback() -> None:
1119
1120
1121
try:
1122
data = await ws.recv(decode=False)
1123
+ except ConnectionClosedOK as e:
1124
+ close_session(e)
1125
+ continue
1126
except ConnectionClosed as e:
1127
logger.debug(
1128
"_do_ensure_connected: Connection closed during waiting "
0 commit comments