Convex Client not exiting cleanly
I'm having trouble getting
InternalConvexClient
to exit cleanly. The following code hangs, even though I call client.close(). Am I missing something?
3 Replies
It seems to take 28 seconds exactly to exit. If I close 10 seconds after starting, then it takes 20 seconds. So it appears there's some sort of 30 second heartbeat. The
close
promise resolves basically immediately though.I can repro, so no you're not missing something
(or I am too)
This might be a regression due to some improvements to auth reconnection we made recently, regardless should be fixed in the release next week.
Thank you for the report @Tristan! It's a timer, if you need a workaround for now you can use
Awesome thanks!