Skip to content
This repository was archived by the owner on Jan 22, 2025. It is now read-only.

websocket connection becomes idle after subscribing to multiple accounts #18670

@davidbrota

Description

@davidbrota

Problem

Hi. I'm subscribing to multiple accounts using the "accountSubscribe" RPC method. Those addresses belong to Serum eventqueues, whose data field takes 1 MB. I'm also using a heartbeat to prevent idle timeouts in the connection.

Problem is that after successfully subscribing to 50 different addresses and receiving a result response for each one of them, the server, at some point, stops sending accountNotification responses and replying to the pings. The connection just stays open and idle (the server never closes it).

This scenario happens on both endpoints of the Mainnet Beta. We're also making sure that we aren't hitting the rate limits described there.

When subscribing to Serum asks and bids addresses the connection works perfectly and we don't experience this issue at all.

Any ideas on what might be going on there?

Metadata

Metadata

Assignees

No one assigned

    Labels

    stale[bot only] Added to stale content; results in auto-close after a week.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions