Skip to content

Conversation

@just-in-chang
Copy link
Contributor

@just-in-chang just-in-chang commented Jan 29, 2026

In production environments, the stream is forced to restart after 5 minutes due to API Gateway behavior. This is not the case when connecting to streams that do not go through API Gateway (i.e. localnet). In some cases, the stream will remain open but stuck. This change will utilize the timeout in config to restart the stream if transactions have not been received for that long. Previously the timeout was only used when waiting for the version tracking request.

@just-in-chang just-in-chang requested a review from a team as a code owner January 29, 2026 00:25
Some(Ok(r)) => {
self.reconnection_retries = 0;

// The processed range may not exist if using the v1 transaction stream.
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we still need this?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not really but I think it's ok to keep just to be safe

@just-in-chang just-in-chang merged commit cdc45e3 into main Jan 29, 2026
2 checks passed
@just-in-chang just-in-chang deleted the justin/stream-timeout branch January 29, 2026 00:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants