-
Notifications
You must be signed in to change notification settings - Fork 255
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
Fix issue: reconnection only happends for 1 time after connection drops #136
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me! 🙏
Since the PR EventSource#125 fixed duplicate connections after reconnection by using a `connectionInProgress` lock to avoid function `connect()` be called duplicately. But it forgot to release the `connectionInProgress` lock when request error happends, in that case, our client can only retry for 1 time and never get the lock again. So it's needed to release the `connectionInProgress` lock when error happends. Signed-off-by: icy_fish <[email protected]>
Hi, any idea when this will be merged and published? Is there any way we could help? Thanks! |
Hi! I'm happy to merge, but I don't have npm publish access so will have to wait for someone who does |
@joeybaker can you update History.md please? Then I’ll make a release. |
Can we get this released please? the current release on npm is still broken. |
Since the PR #125 fixed duplicate connections after reconnection by using a
connectionInProgress
lock to avoid functionconnect()
be called duplicately.But it forgot to release the
connectionInProgress
lock when request error happends, in that case, our client can only retry for 1 time and never get the lock again.So it's needed to release the
connectionInProgress
lock when error happends.