neumino / rethinkdbdash

An advanced Node.js driver for RethinkDB with a connection pool, support for streams etc.
MIT License
848 stars 109 forks source link

No pool draining if changes stream active #402

Open ob-julian opened 8 months ago

ob-julian commented 8 months ago

I have some code that creates automated changes() Listeners/Events/Cursor/Streams (whatever you wanna call them) for every logged-in user. If I now try to restart the Service the r.getPoolMaster().drain(); doesn't work so I need to force quit the Service. \ The thing is, I don't have/saved access to those Streams so I can't close them. \ If I deactivate the code that creates the Streams r.getPoolMaster().drain(); works as expected.

Version: Rethink: 2.4.2~0bullseye (GCC 10.2.1) Dash: 9.6.3