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
When calling connection.close on a connection which has error'd, a promise which never resolves is returned. To reproduce, execute the following and close the created connection via the RabbitMQ management plugin.
You'll see that ok or fail are never logged which indicates that connection.close() never resolved.
Admittedly, this example is a bit contrived, but it's just a simplification of what we do in production: listen to uncaughtException and attempt to close any connections before the process exits.
The text was updated successfully, but these errors were encountered:
When calling
connection.close
on a connection which has error'd, a promise which never resolves is returned. To reproduce, execute the following and close the created connection via the RabbitMQ management plugin.You'll see that
ok
orfail
are never logged which indicates thatconnection.close()
never resolved.Admittedly, this example is a bit contrived, but it's just a simplification of what we do in production: listen to
uncaughtException
and attempt to close any connections before the process exits.The text was updated successfully, but these errors were encountered: