python-socketio icon indicating copy to clipboard operation
python-socketio copied to clipboard

Sanic server freezes after connect

Open autogestion opened this issue 5 years ago • 1 comments

Have tried this example https://github.com/miguelgrinberg/python-socketio/tree/master/examples/server/sanic with sanic v. 19.12.2 and 20.3.0 + python-socketio v. 4.6.0 Server allows client to connect, after this any interaction is impossible

Have tried to run app with app.run(protocol=HttpProtocol) It throws AttributeError: 'HttpProtocol' object has no attribute 'websocket_handshake' but after this it works fine

autogestion avatar Jun 04 '20 22:06 autogestion

Quite possible that the sanic project made backwards incompatible changes without letting me know. I don't use sanic myself. I'll investigate when I have a moment, but if you are able to debug this and report or post a solution please do.

miguelgrinberg avatar Jun 04 '20 22:06 miguelgrinberg

Not planning to invest time fixing Sanic bugs anymore. Use the ASGI support instead.

miguelgrinberg avatar Jan 06 '24 19:01 miguelgrinberg