omnia-network / ic-websocket-gateway

WebSocket gateway for the IC
https://status.icws.io
MIT License
24 stars 2 forks source link

Polling timeout #22

Closed massimoalbarello closed 8 months ago

massimoalbarello commented 8 months ago

When polling for canister messages, the request timeout happens after 2 minutes. In this time, the poller is idle and new messages are neither polled nor relayed.

Add a timeout of 5 seconds so that if a response is not received, the poller can poll again immediately. The boundary node should choose another replica (randomly) and thus the poller should have a better chance to get the response in time.