solana icon indicating copy to clipboard operation
solana copied to clipboard

Implement retry count and error state for stateful subscription.

Open Jac0xb opened this issue 1 year ago • 3 comments

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

Jac0xb avatar Sep 16 '22 02:09 Jac0xb

@steveluscher i think this is the easiest path forward on the issue.

Jac0xb avatar Sep 16 '22 02:09 Jac0xb

very nice

xrzhuang avatar Sep 16 '22 02:09 xrzhuang

Quite possibly related: #27859.

steveluscher avatar Sep 17 '22 21:09 steveluscher