fix: auto-reconnect client after server restart instead of exiting #14
Loading…
Reference in a new issue
No description provided.
Delete branch "devel"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Client no longer exits when the server drops the connection (e.g.
deploy.shrestarts it).
receive_audionow clears the wake event and returns onConnectionClosedinstead of settingstop_event; a newreset_connection_state()wipes per-connection state and drains the audioqueues between attempts, and the outer loop retries with the existing
backoff.
asyncio.waitmoved toFIRST_COMPLETEDso a clean servershutdown can't hang the wait.
Adds
TestServerRestartReconnect: realwebsocketsserver closes theclient's connection, server restarts, client reconnects without
stop_eventever being set. Full suite: 28 passed.