diff --git a/CHANGELOG.asciidoc b/CHANGELOG.asciidoc index e7209cfb63..4a528cc9bc 100644 --- a/CHANGELOG.asciidoc +++ b/CHANGELOG.asciidoc @@ -1,5 +1,11 @@ = CHANGELOG +== 1.5.0 + +* Add transport functions getopts/2, getstat/1 and getstat/2 +* Fix ranch:info/0 and ranch:procs/2 in embedded mode +* Prevent ranch_conns_sup from stopping on unexpected messages + == 1.4.0 * Add new transport option num_acceptor @@ -34,7 +40,6 @@ do not include code changes. == 1.2.0 - * Allow the supervised process and the process owning the socket to be different * Add many transport options (please refer to the documentation) * Add function ranch:get_addr/1 to retrieve both IP and port of listener diff --git a/LICENSE b/LICENSE index 9d28158fb7..561c89dbdf 100644 --- a/LICENSE +++ b/LICENSE @@ -1,4 +1,4 @@ -Copyright (c) 2011-2017, Loïc Hoguin +Copyright (c) 2011-2018, Loïc Hoguin Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above diff --git a/Makefile b/Makefile index d37b8ccf92..fc928b16fb 100644 --- a/Makefile +++ b/Makefile @@ -2,7 +2,7 @@ PROJECT = ranch PROJECT_DESCRIPTION = Socket acceptor pool for TCP protocols. -PROJECT_VERSION = 1.4.0 +PROJECT_VERSION = 1.5.0 PROJECT_REGISTERED = ranch_server # Options. diff --git a/ebin/ranch.app b/ebin/ranch.app index 360dfa7786..023d64f6f6 100644 --- a/ebin/ranch.app +++ b/ebin/ranch.app @@ -1,6 +1,6 @@ {application, 'ranch', [ {description, "Socket acceptor pool for TCP protocols."}, - {vsn, "1.4.0"}, + {vsn, "1.5.0"}, {modules, ['ranch','ranch_acceptor','ranch_acceptors_sup','ranch_app','ranch_conns_sup','ranch_listener_sup','ranch_protocol','ranch_server','ranch_ssl','ranch_sup','ranch_tcp','ranch_transport']}, {registered, [ranch_sup,ranch_server]}, {applications, [kernel,stdlib,ssl]}, diff --git a/src/ranch.erl b/src/ranch.erl index d4adee546b..70fb64c137 100644 --- a/src/ranch.erl +++ b/src/ranch.erl @@ -1,4 +1,4 @@ -%% Copyright (c) 2011-2017, Loïc Hoguin +%% Copyright (c) 2011-2018, Loïc Hoguin %% %% Permission to use, copy, modify, and/or distribute this software for any %% purpose with or without fee is hereby granted, provided that the above diff --git a/src/ranch_acceptor.erl b/src/ranch_acceptor.erl index fbbf6b5d93..ada8016ab2 100644 --- a/src/ranch_acceptor.erl +++ b/src/ranch_acceptor.erl @@ -1,4 +1,4 @@ -%% Copyright (c) 2011-2017, Loïc Hoguin +%% Copyright (c) 2011-2018, Loïc Hoguin %% %% Permission to use, copy, modify, and/or distribute this software for any %% purpose with or without fee is hereby granted, provided that the above diff --git a/src/ranch_acceptors_sup.erl b/src/ranch_acceptors_sup.erl index 0a79d35f1d..f4b2fd8655 100644 --- a/src/ranch_acceptors_sup.erl +++ b/src/ranch_acceptors_sup.erl @@ -1,4 +1,4 @@ -%% Copyright (c) 2011-2017, Loïc Hoguin +%% Copyright (c) 2011-2018, Loïc Hoguin %% %% Permission to use, copy, modify, and/or distribute this software for any %% purpose with or without fee is hereby granted, provided that the above diff --git a/src/ranch_app.erl b/src/ranch_app.erl index 25115c8d55..8ac470e86f 100644 --- a/src/ranch_app.erl +++ b/src/ranch_app.erl @@ -1,4 +1,4 @@ -%% Copyright (c) 2011-2017, Loïc Hoguin +%% Copyright (c) 2011-2018, Loïc Hoguin %% %% Permission to use, copy, modify, and/or distribute this software for any %% purpose with or without fee is hereby granted, provided that the above diff --git a/src/ranch_conns_sup.erl b/src/ranch_conns_sup.erl index 14c24812d6..6a2336f37f 100644 --- a/src/ranch_conns_sup.erl +++ b/src/ranch_conns_sup.erl @@ -1,4 +1,4 @@ -%% Copyright (c) 2011-2017, Loïc Hoguin +%% Copyright (c) 2011-2018, Loïc Hoguin %% %% Permission to use, copy, modify, and/or distribute this software for any %% purpose with or without fee is hereby granted, provided that the above diff --git a/src/ranch_listener_sup.erl b/src/ranch_listener_sup.erl index 584dc3692e..d3bc59db79 100644 --- a/src/ranch_listener_sup.erl +++ b/src/ranch_listener_sup.erl @@ -1,4 +1,4 @@ -%% Copyright (c) 2011-2017, Loïc Hoguin +%% Copyright (c) 2011-2018, Loïc Hoguin %% %% Permission to use, copy, modify, and/or distribute this software for any %% purpose with or without fee is hereby granted, provided that the above diff --git a/src/ranch_protocol.erl b/src/ranch_protocol.erl index 85d204215f..30a5b514fe 100644 --- a/src/ranch_protocol.erl +++ b/src/ranch_protocol.erl @@ -1,4 +1,4 @@ -%% Copyright (c) 2012-2017, Loïc Hoguin +%% Copyright (c) 2012-2018, Loïc Hoguin %% %% Permission to use, copy, modify, and/or distribute this software for any %% purpose with or without fee is hereby granted, provided that the above diff --git a/src/ranch_server.erl b/src/ranch_server.erl index 64f1f98c8b..89c508caa0 100644 --- a/src/ranch_server.erl +++ b/src/ranch_server.erl @@ -1,4 +1,4 @@ -%% Copyright (c) 2012-2017, Loïc Hoguin +%% Copyright (c) 2012-2018, Loïc Hoguin %% %% Permission to use, copy, modify, and/or distribute this software for any %% purpose with or without fee is hereby granted, provided that the above diff --git a/src/ranch_ssl.erl b/src/ranch_ssl.erl index 5f6d5c2eb0..ac96e45149 100644 --- a/src/ranch_ssl.erl +++ b/src/ranch_ssl.erl @@ -1,4 +1,4 @@ -%% Copyright (c) 2011-2017, Loïc Hoguin +%% Copyright (c) 2011-2018, Loïc Hoguin %% %% Permission to use, copy, modify, and/or distribute this software for any %% purpose with or without fee is hereby granted, provided that the above diff --git a/src/ranch_sup.erl b/src/ranch_sup.erl index eccf17d8bc..f5bf82edec 100644 --- a/src/ranch_sup.erl +++ b/src/ranch_sup.erl @@ -1,4 +1,4 @@ -%% Copyright (c) 2011-2017, Loïc Hoguin +%% Copyright (c) 2011-2018, Loïc Hoguin %% %% Permission to use, copy, modify, and/or distribute this software for any %% purpose with or without fee is hereby granted, provided that the above diff --git a/src/ranch_tcp.erl b/src/ranch_tcp.erl index 8cc03a1a60..bc0c75d3f8 100644 --- a/src/ranch_tcp.erl +++ b/src/ranch_tcp.erl @@ -1,4 +1,4 @@ -%% Copyright (c) 2011-2017, Loïc Hoguin +%% Copyright (c) 2011-2018, Loïc Hoguin %% %% Permission to use, copy, modify, and/or distribute this software for any %% purpose with or without fee is hereby granted, provided that the above diff --git a/src/ranch_transport.erl b/src/ranch_transport.erl index 89ceb12495..b671cf5431 100644 --- a/src/ranch_transport.erl +++ b/src/ranch_transport.erl @@ -1,4 +1,4 @@ -%% Copyright (c) 2012-2017, Loïc Hoguin +%% Copyright (c) 2012-2018, Loïc Hoguin %% %% Permission to use, copy, modify, and/or distribute this software for any %% purpose with or without fee is hereby granted, provided that the above diff --git a/test/acceptor_SUITE.erl b/test/acceptor_SUITE.erl index f826f54ada..a8c6d23d20 100644 --- a/test/acceptor_SUITE.erl +++ b/test/acceptor_SUITE.erl @@ -1,4 +1,4 @@ -%% Copyright (c) 2011-2017, Loïc Hoguin +%% Copyright (c) 2011-2018, Loïc Hoguin %% %% Permission to use, copy, modify, and/or distribute this software for any %% purpose with or without fee is hereby granted, provided that the above diff --git a/test/ranch_ct_hook.erl b/test/ranch_ct_hook.erl index bf452cc147..183cdf5eb1 100644 --- a/test/ranch_ct_hook.erl +++ b/test/ranch_ct_hook.erl @@ -1,4 +1,4 @@ -%% Copyright (c) 2015-2017, Loïc Hoguin +%% Copyright (c) 2015-2018, Loïc Hoguin %% %% Permission to use, copy, modify, and/or distribute this software for any %% purpose with or without fee is hereby granted, provided that the above diff --git a/test/sendfile_SUITE.erl b/test/sendfile_SUITE.erl index e2c9dc0ebe..d89724fad8 100644 --- a/test/sendfile_SUITE.erl +++ b/test/sendfile_SUITE.erl @@ -1,5 +1,5 @@ %% Copyright (c) 2013, James Fish -%% Copyright (c) 2015-2017, Loïc Hoguin +%% Copyright (c) 2015-2018, Loïc Hoguin %% %% Permission to use, copy, modify, and/or distribute this software for any %% purpose with or without fee is hereby granted, provided that the above diff --git a/test/shutdown_SUITE.erl b/test/shutdown_SUITE.erl index 168958133d..cf1edfd7bb 100644 --- a/test/shutdown_SUITE.erl +++ b/test/shutdown_SUITE.erl @@ -1,4 +1,4 @@ -%% Copyright (c) 2013-2017, Loïc Hoguin +%% Copyright (c) 2013-2018, Loïc Hoguin %% %% Permission to use, copy, modify, and/or distribute this software for any %% purpose with or without fee is hereby granted, provided that the above