diff options
author | Loïc Hoguin <[email protected]> | 2016-08-29 12:39:49 +0200 |
---|---|---|
committer | Loïc Hoguin <[email protected]> | 2016-08-29 12:40:03 +0200 |
commit | c807880f7ac73f813b2660ea81a00f7712a4e793 (patch) | |
tree | ba1d09e9b177f230665a80513b33fbd532000ce4 /_build/static/archives/extend/2015-January/000495.html | |
parent | b1df25a7d9cda697513650659b781b55b40898f8 (diff) | |
download | ninenines.eu-c807880f7ac73f813b2660ea81a00f7712a4e793.tar.gz ninenines.eu-c807880f7ac73f813b2660ea81a00f7712a4e793.tar.bz2 ninenines.eu-c807880f7ac73f813b2660ea81a00f7712a4e793.zip |
Add old mailing list archives
Diffstat (limited to '_build/static/archives/extend/2015-January/000495.html')
-rw-r--r-- | _build/static/archives/extend/2015-January/000495.html | 138 |
1 files changed, 138 insertions, 0 deletions
diff --git a/_build/static/archives/extend/2015-January/000495.html b/_build/static/archives/extend/2015-January/000495.html new file mode 100644 index 00000000..155c3fda --- /dev/null +++ b/_build/static/archives/extend/2015-January/000495.html @@ -0,0 +1,138 @@ +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> +<HTML> + <HEAD> + <TITLE> [99s-extend] Cowboy + SSL + </TITLE> + <LINK REL="Index" HREF="index.html" > + <LINK REL="made" HREF="mailto:extend%40lists.ninenines.eu?Subject=Re%3A%20%5B99s-extend%5D%20Cowboy%20%2B%20SSL&In-Reply-To=%3C54BFEFD8.7070003%40bestmx.net%3E"> + <META NAME="robots" CONTENT="index,nofollow"> + <style type="text/css"> + pre { + white-space: pre-wrap; /* css-2.1, curent FF, Opera, Safari */ + } + </style> + <META http-equiv="Content-Type" content="text/html; charset=us-ascii"> + <LINK REL="Previous" HREF="000494.html"> + <LINK REL="Next" HREF="000499.html"> + </HEAD> + <BODY BGCOLOR="#ffffff"> + <H1>[99s-extend] Cowboy + SSL</H1> + <B>e at bestmx.net</B> + <A HREF="mailto:extend%40lists.ninenines.eu?Subject=Re%3A%20%5B99s-extend%5D%20Cowboy%20%2B%20SSL&In-Reply-To=%3C54BFEFD8.7070003%40bestmx.net%3E" + TITLE="[99s-extend] Cowboy + SSL">e at bestmx.net + </A><BR> + <I>Wed Jan 21 19:28:40 CET 2015</I> + <P><UL> + <LI>Previous message: <A HREF="000494.html">[99s-extend] Cowboy + SSL +</A></li> + <LI>Next message: <A HREF="000499.html">[99s-extend] Cowboy + SSL +</A></li> + <LI> <B>Messages sorted by:</B> + <a href="date.html#495">[ date ]</a> + <a href="thread.html#495">[ thread ]</a> + <a href="subject.html#495">[ subject ]</a> + <a href="author.html#495">[ author ]</a> + </LI> + </UL> + <HR> +<!--beginarticle--> +<PRE>reading the sources i have found that this crash i am trying to report +is intended behavior, +but +it happens in the middle of the SHUTDOWN procedure! + + +I tried to investigate how a relx's release shuts down +and i have found it is merely one call to: init:stop/0 +nothing else. + +the manual says: + +stop() -> ok + +All applications are taken down smoothly, all code is unloaded, and all +ports are closed before the system terminates. If the -heart command +line flag was given, the heart program is terminated before the Erlang +node terminates. + +I end up totally clueless -- everything is rock solid yet it crashes. +maybe there is some clue in the sequence of shutting down applications? + +does anything controls/defines that sequence? + + + +On 01/19/2015 08:32 PM, <A HREF="https://lists.ninenines.eu/listinfo/extend">e at bestmx.net</A> wrote: +><i> Hello. +</I>><i> +</I>><i> i still have a problem with SSL. +</I>><i> as soon as i change cowboy:start_http call to cowboy:start_https +</I>><i> my release refuses to stop (when requested) +</I>><i> and when i revert to "http" it starts and stops normally. +</I>><i> +</I>><i> i am sure it is the only difference: start_http vs. start_https +</I>><i> +</I>><i> i am using relx with default settings as it was provided by cowboy +</I>><i> (Erlang R17, System: Debian "testing") +</I>><i> +</I>><i> here is my_app.erl: +</I>><i> +</I>><i> start(_Type, _Args) -> +</I>><i> Dispatch = +</I>><i> cowboy_router:compile([{'_', [{"/start", ws_handler, []}]}]), +</I>><i> +</I>><i> cowboy:start_https( https, 100, [ {port, 8765} +</I>><i> , {cacertfile, ?Dir ++ "/ssl/cowboy-ca.crt"} +</I>><i> , {certfile, ?Dir ++ "/ssl/server.crt"} +</I>><i> , {keyfile, ?Dir ++ "/ssl/server.key"} ] +</I>><i> , [{env, [{dispatch, Dispatch}]}]), +</I>><i> +</I>><i> online37_sup:start_link(). +</I>><i> +</I>><i> stop(_State) -> ok. +</I>><i> +</I>><i> +</I>><i> once i call: +</I>><i> release/bin/my_release stop +</I>><i> +</I>><i> the erlang.log repeats hundreds of: +</I>><i> +</I>><i> =ERROR REPORT==== 19-Jan-2015::20:06:02 === +</I>><i> Error in process <0.234.0> on node '<A HREF="https://lists.ninenines.eu/listinfo/extend">online37 at 127.0.0.1</A>' with exit value: +</I>><i> {{case_clause,{error,closed}},[{ranch_acceptor,loop,3,[{file,"src/ranch_acceptor.erl"},{line,28}]}]} +</I>><i> +</I>><i> +</I>><i> +</I>><i> what could it be? +</I>><i> any misconfiguration of my system (regarding ssl support)? +</I>><i> what exactly does ranch expect from me? +</I>><i> +</I>><i> +</I>><i> _______________________________________________ +</I>><i> Extend mailing list +</I>><i> <A HREF="https://lists.ninenines.eu/listinfo/extend">Extend at lists.ninenines.eu</A> +</I>><i> <A HREF="https://lists.ninenines.eu/listinfo/extend">https://lists.ninenines.eu/listinfo/extend</A> +</I></PRE> + + + +<!--endarticle--> + <HR> + <P><UL> + <!--threads--> + <LI>Previous message: <A HREF="000494.html">[99s-extend] Cowboy + SSL +</A></li> + <LI>Next message: <A HREF="000499.html">[99s-extend] Cowboy + SSL +</A></li> + <LI> <B>Messages sorted by:</B> + <a href="date.html#495">[ date ]</a> + <a href="thread.html#495">[ thread ]</a> + <a href="subject.html#495">[ subject ]</a> + <a href="author.html#495">[ author ]</a> + </LI> + </UL> + +<hr> +<a href="https://lists.ninenines.eu/listinfo/extend">More information about the Extend +mailing list</a><br> +</body></html> |