solana
solana copied to clipboard
Implement retry count and error state for stateful subscription.
Problem
Running into infinite recursion bug defined in #26198, in environment in node v16, web3.js 1.56.2. Causes lambda to stall and timeout.
Error example:
signatureSubscribe error for argument [
'{transactionSignature}',
{ commitment: 'confirmed' }
] socket not ready
Summary of Changes
Implement error
state type which tracks retries and logs error + deletes subscription when max retries hit for stateful subscription.
Fixes #26198
@steveluscher i think this is the easiest path forward on the issue.
very nice
Quite possibly related: solana-labs/solana#27859.