[99s-extend] couldn't quit in Erlang 17.1

chaehb chaehb at gmail.com
Thu Aug 14 03:20:05 CEST 2014


On 2014. 7. 27., at 오후 6:25, Loïc Hoguin <essen at ninenines.eu> wrote:

> Does it happen with ssl_hello_world?
> 
> On 07/26/2014 09:06 AM, chaehb wrote:
>> Hi, everybody.
>> 
>> After Erlang updated to 17.1,
>> when I run q(). command on erlang console, cowboy couldn't quitted but print series of messages..
>> 
>> (after ok signal printed)
>> 
>> …...
>> =ERROR REPORT==== 26-Jul-2014::15:23:33 ===
>> Error in process <0.334.0> on node ‘...my node name...' with exit value: {{case_clause,{error,closed}},[{ranch_acceptor,loop,3,[{file,"src/ranch_acceptor.erl"},{line,28}]}]}
>> ….
>> 
>> Before erlang updated (in 17.0), application could be normally quitted exactly same codes and environments.
>> 
>> This is only appeared when I only use ssl(https).
>> But when use only http with same dispatch rules, cowboy normally quitted.
>> 

I’ve try to do more tests with ssl_hello_world in cowboy(v1.0)  and various Erlang/OTP versions.

If ErlangOTP < 17.0, http/https works fine.
If ErlangOTP >= 17.1(17.1.x,17.2 in github), http works fine but with https the same errors appeared.

*****
When I edited ranch_accepter.erl > line 40 
	{error, Reason} when Reason =/= closed -> 
	to
	{error, Reason} ->
,
https work and app was normally quitted.

When I printed, Reason == closed.



More information about the Extend mailing list