You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
sql.subscribe() after a reconnect binds to the dead stream and end() hangs #32
subscribe() calls connected(x) with the result of the first init(): the connection promise is set once and never updated when onclose reconnects. A sql.subscribe() made after a reconnect therefore sets stream back to the destroyed first stream, and sql.end() then hangs (it waits for that stream's close).
Found while planning #24 (verified: end hung after 3 s). Likely fix: keep connection pointing at the latest init() (assign it in the reconnect), with a test that also covers an init() that rejects.
Activity
fix: end sql.subscribe() cleanly while it reconnects
fix: end sql.subscribe() cleanly while it reconnects
chore: release 4.4.0