miguelgrinberg / python-engineio

Python Engine.IO server and client
MIT License
232 stars 147 forks source link

Client shows error message after disconnecting from server #342

Closed miguelgrinberg closed 7 months ago

miguelgrinberg commented 8 months ago

Discussed in https://github.com/miguelgrinberg/python-socketio/discussions/1300.

When the client disconnects itself from the server, an error message appears before exit. The error message can be one of two possibilities:

Unexpected error decoding packet: "Invalid empty packet received", aborting
Unexpected error receiving packet: "[Errno 9] Bad file descriptor", aborting

The async client reports a slightly different one:

Server sent unexpected packet 256 data None, aborting