Files
jambonz-feature-server/lib/utils
Ben Younes 74510b0bef fix: retry ws opening-handshake timeout under the default ct policy (#1565) (#1576)
The ws v8 library throws a plain Error('Opening handshake has timed out') with no
.code and name 'Error' when the handshake timeout (JAMBONES_WS_HANDSHAKE_TIMEOUT_MS,
default 1500ms) elapses. BaseRequestor._shouldRetry classified retryable errors only
by .code/.name/.statusCode, so this error matched neither the ct nor rt bucket and was
never retried under the default rp=ct policy — the call failed immediately on the first
attempt, silently bypassing maxReconnects.

Match the handshake-timeout message in the ct bucket so a transient slow WS upgrade
(e.g. a serverless/edge backend cold start) is retried as intended. Adds tape coverage
for both the default-ct retry path and the rp=4xx no-retry path.
2026-09-13 11:49:40 +01:00
..
2026-03-29 16:07:08 -04:00
2026-03-29 16:07:08 -04:00
2025-09-06 14:15:16 -04:00
2024-03-23 16:23:57 -04:00
2021-05-07 16:29:40 -04:00
2025-12-09 09:43:53 -05:00
2026-03-29 16:07:08 -04:00