Files
factorio-clusterio/packages/lib/src
bbassieandClaude Opus 4.8 3512042cf3 Forget a forwarded request that could not be sent
forwardRequest records a request so that its response can be sent back the
way it came, but recorded it before handing the message to the connector.
When the connector threw, because the session to the next hop was gone, the
record stayed behind for a request that had never left.

Routers answer the origin themselves when forwarding throws, so the request
was already accounted for. The leftover record then had it answered a
second time when the link cleared its pending requests on disconnect,
producing a duplicate response and "Received response N without a pending
request" at the far end.

Remove the record when the forward throws. Doing it here rather than in the
routers covers both the host, which catches and responds, and the
controller router, which does not.

Fixes #650

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-07-23 22:58:37 +00:00
..
2026-04-09 22:53:13 +02:00
2026-04-09 22:53:13 +02:00
2026-04-09 22:53:13 +02:00
2026-04-09 22:53:13 +02:00
2026-04-15 22:15:14 +01:00
2023-11-24 20:53:16 +01:00
2026-04-09 22:53:13 +02:00
2024-11-12 17:15:15 +00:00
2026-07-02 00:27:05 +01:00
2026-03-24 17:36:19 +00:00
2025-11-07 21:48:09 +00:00
2023-12-02 01:47:02 +01:00
2026-01-07 01:20:40 +00:00
2026-04-09 22:53:13 +02:00