New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The Ranch application with SSL listener fails after calling init:stop/0 in Erlang/OTP 17.1 and 17.3 #90
Comments
|
I have struggled the same issue after erlang/otp 17.1. |
|
If the listening socket got closed, we need to reopen it, therefore we crash here so the error bubbles up the supervision tree until the code that reopens the socket. The relevant mailing list discussion can be found at http://erlang.org/pipermail/erlang-questions/2014-October/081183.html This code should not be triggered on shutdown as these processes are brutally killed. The issue comes from the application start/stop order. If you make Ranch depend on SSL, everything works correctly. What I am unsure of is what has changed that makes code that worked before 17.1 to suddenly stop working, though. |
|
Thank you for the clarification. I think this issue can be closed. |
|
I will keep it open for now as I need to investigate further, so this will be my reminder. Thanks for the report! |
|
Hi @essen , |
|
sed is your friend. I do this: |
|
Awesome, thanks for that tip |
|
Hi, after erlang upgrade to r18 I have this issue again. Proposed solution with sed has no effect. |
|
Fixed sed command: |
|
So this is fixed in my local copy. Push later and will be in 1.3.0. Closing, thanks! |
The listener socket has been closed. The ranch_acceptors_sup shuts down the ranch application because of the maximum number of restarts. This forces all other applications to be also terminated. But the entire Erlang node remains running.
What is the purpose of this guard? As mentioned in the erlang-questions mailing list, the listener socket can be closed before the ranch application has finished its shutdown. And this behaviour is considered normal.
The text was updated successfully, but these errors were encountered: