diff options
author | Loïc Hoguin <[email protected]> | 2015-12-18 15:46:39 +0100 |
---|---|---|
committer | Loïc Hoguin <[email protected]> | 2015-12-18 15:46:39 +0100 |
commit | cfb5386fafaa8ba75bb4720403e90b2581643f9f (patch) | |
tree | 05ddc7a7ec6960a281d11504c69d215bdbd8d931 /.gitignore | |
parent | 666e5398cee49cad985bfe522e9b9b9bf0032417 (diff) | |
download | ranch-cfb5386fafaa8ba75bb4720403e90b2581643f9f.tar.gz ranch-cfb5386fafaa8ba75bb4720403e90b2581643f9f.tar.bz2 ranch-cfb5386fafaa8ba75bb4720403e90b2581643f9f.zip |
Fix node shutdown getting stuck
When SSL is stopped before Ranch, the acceptors crash and
Ranch tries to restart them. The problem is that the
ranch_ssl:listen/1 call was trying to start the SSL
application to make sure it works (an old artifact from
when releases were not ubiquitous). Because the application
controller is trying to shutdown Ranch, and Ranch tries to
tell it to start an application, everything would get stuck.
To avoid a breaking change, we move this in the start_listener
call (or child_spec). Note that there are still logs when the
SSL application is closed, because the acceptors crash. But
at least we don't block node shutdown anymore.
In Ranch 2.0, we will implement the proper fix which is to
simply depend on the SSL application normally. Nowadays, it's
not too difficult to build a release that excludes applications
we don't want, although we should document that in the Ranch
user guide.
Diffstat (limited to '.gitignore')
0 files changed, 0 insertions, 0 deletions