Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Close() requests during database connection attempts do nothing. #13

Closed
mfrobben opened this Issue · 1 comment

2 participants

@mfrobben

If the connection hasn't yet been opened, a close() returns no error but does nothing...that's not good. I've got a pull that should fix this by adding a client.close() after all the pended requests flush.

@mfrobben

(The use case here is when running a production cron job or shorter script that logs via winston with mongodb transport...the scripts can exit quickly but when winston-mongodb is set to keepAlive:true, the script cleanup routine, which calls close(), returns but the script never actually exits)

@39dotyt 39dotyt added the unconfirmed label
@39dotyt 39dotyt closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.