Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve readyState behavior to more reliably report connection state #14727

Closed
2 tasks done
alexbevi opened this issue Jul 5, 2024 · 1 comment
Closed
2 tasks done
Labels
enhancement This issue is a user-facing general improvement that doesn't fix a bug or add a new feature new feature This change adds new functionality, like a new method or class
Milestone

Comments

@alexbevi
Copy link
Contributor

alexbevi commented Jul 5, 2024

Prerequisites

  • I have written a descriptive issue title
  • I have searched existing issues to ensure the feature has not already been requested

🚀 Feature Proposal

Since readyState updates are based on topology status updates, it's less reliable in stateless environments (such as AWS Lamba) as topology update events may be missed while the execution environment is frozen.

This can result in readyState tests returning stale state information.

Motivation

No response

Example

No response

@alexbevi alexbevi added enhancement This issue is a user-facing general improvement that doesn't fix a bug or add a new feature new feature This change adds new functionality, like a new method or class labels Jul 5, 2024
@vkarpov15 vkarpov15 added this to the 8.6 milestone Jul 5, 2024
vkarpov15 added a commit that referenced this issue Aug 17, 2024
@vkarpov15 vkarpov15 modified the milestones: 8.6, 8.7 Aug 26, 2024
@vkarpov15
Copy link
Collaborator

Going to move this one back because I've been having trouble reproducing this issue in AWS lambda

vkarpov15 added a commit that referenced this issue Sep 17, 2024
fix(connection): avoid returning `readyState = connected` if connection state is stale
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement This issue is a user-facing general improvement that doesn't fix a bug or add a new feature new feature This change adds new functionality, like a new method or class
Projects
None yet
Development

No branches or pull requests

2 participants