This commit is contained in:
yumoqing 2024-04-28 13:14:24 +08:00
parent c7fa6ef8f7
commit 88776d25f5

View File

@ -150,7 +150,11 @@ class WebsocketProcessor(PythonScriptProcessor):
print(f'{request.path=}2') print(f'{request.path=}2')
ws = web.WebSocketResponse() ws = web.WebSocketResponse()
print(f'{request.path=}3', ws.closed) print(f'{request.path=}3', ws.closed)
await ws.prepare(request) try:
await ws.prepare(request)
except Exception as e:
print('--------except:', e)
raise e
print(f'{request.path=}4') print(f'{request.path=}4')
ws_pool = WsPool(ws, request.path, request.app) ws_pool = WsPool(ws, request.path, request.app)
print(f'{request.path=}5') print(f'{request.path=}5')