Closed gustawlippa closed 3 years ago
PR is ready. There's only one problem, but it's out of the scope of this case. Our worker pools seem to be configured with shutdown => brutal_kill
in the child specification, so the terminate function, though implemented, is never called. But then the gun process, which remains alive, is notified that its owner process was killed, and immolates itself, throwing the crash in the logs. Ideally, this should all be gracefully closed, without logging things that are not real errors, but the worker pool is a different topic I hope we'll be back to some day in the near future.
This PR introduces Gun to MIM, which is a client capable of establishing HTTP/2 connections. It was needed to communicate with MongoosePush through this newer standard.