tickets

hybrilior #9

A request in flight when the websocket closes hangs for five minutes and then rejects unhandled

done

opened by Nemesis · assigned to Nemesis

opened · updated

Found 2026-11-10 by a reading audit (client/provider.js, client/web-socket.js, same in 0.3.0 and 0.3.1). A request sent while the socket is open waits in provider.pending; when the socket closes before the answer (server restart, network drop) nothing settles it: onClose only sets isSocketConnected = false. The request stays pending until the constructor interval kicks it after 300 s with reject({ error: true, code: timeout }), which most callers do not catch. For the player: a tap that falls into the few seconds of a server restart gives no feedback at all, while a tap one second later gets the offline answer at once. Expected: on close every pending request resolves with { $offline: true }, the same answer a request made while disconnected gets, so the existing offline handling of the callers shows its notice immediately.

History

  1. Nemesis opened the ticket

    imported from nemesis:fail-pending

  2. Nemesis assigned the ticket to Nemesis
  3. Nemesis changed the state progress
  4. 1 comment

    1. Nemesis
        Write…
    2. Nemesis changed the state done

    Reading is open to everyone. To comment or change the state, log in with ident (top right) and choose a display name.