| 1 |
[appendix] |
| 2 |
== Migrating from Ranch 1.x |
| 3 |
|
| 4 |
The changelog for Ranch releases before 1.6 can be found |
| 5 |
in this section. |
| 6 |
|
| 7 |
=== 1.5.0 |
| 8 |
|
| 9 |
* Add transport functions getopts/2, getstat/1 and getstat/2 |
| 10 |
* Fix ranch:info/0 and ranch:procs/2 in embedded mode |
| 11 |
* Prevent ranch_conns_sup from stopping on unexpected messages |
| 12 |
|
| 13 |
=== 1.4.0 |
| 14 |
|
| 15 |
* Add new transport option num_acceptor |
| 16 |
* Deprecate ranch:start_listener/6 in favor of start_listener/5 |
| 17 |
* Deprecate ranch:child_spec/6 in favor of child_spec/5 |
| 18 |
|
| 19 |
=== 1.3.0 |
| 20 |
|
| 21 |
The version numbers 1.3.1 and 1.3.2 were later made to fix |
| 22 |
small mistakes made during the 1.3.0 release process. They |
| 23 |
do not include code changes. |
| 24 |
|
| 25 |
* Tested with OTP R16B+ on Linux, FreeBSD, OSX and Windows |
| 26 |
* Add ssl to the list of dependencies |
| 27 |
* Add ranch:info/0 and ranch:procs/2 to retrieve Ranch state information |
| 28 |
* Allow configuring a listener with only SNI, without a default certificate |
| 29 |
* Blacklist transport options instead of whitelist |
| 30 |
** Unknown options are now allowed, but will result in a Dialyzer warning |
| 31 |
* Add many transport options typespecs and documentation |
| 32 |
* Don't silently drop the accept rate when running out of fds |
| 33 |
* Prevent a race condition when stopping listeners |
| 34 |
* Improve reporting for common errors, for example eaddrinuse |
| 35 |
* Fix double removal of connections bug |
| 36 |
** The number of active connections should now be exact |
| 37 |
* Fix stuck acceptor bug when controlling_socket returned errors |
| 38 |
* Numerous documentation and examples improvements |
| 39 |
|
| 40 |
=== 1.2.1 |
| 41 |
|
| 42 |
* Fix bug preventing node shutdown when SSL is used with OTP 17.1+ |
| 43 |
* Tune restart intensity in all supervisors |
| 44 |
|
| 45 |
=== 1.2.0 |
| 46 |
|
| 47 |
* Allow the supervised process and the process owning the socket to be different |
| 48 |
* Add many transport options (please refer to the documentation) |
| 49 |
* Add function ranch:get_addr/1 to retrieve both IP and port of listener |
| 50 |
* Don't pass Ranch-specific options down to transports |
| 51 |
** Should make Dialyzer happy in user projects |
| 52 |
** New types ranch:opt(), ranch_tcp:opt(), ranch_ssl:ssl_opt() and ranch_ssl:opt() |
| 53 |
* Fix crash when filtering unknown options out |
| 54 |
* Print a warning for each option filtered out |
| 55 |
* Handle Transport:controlling_socket/2 errors and close the socket |
| 56 |
* Handle Protocol:start_link/4 crashes to avoid killing all active connections |
| 57 |
* Use Asciidoc for documentation |
| 58 |
* Test Ranch across 14 Erlang versions on CircleCI |
| 59 |
* Improve and document test suites with recent ct_helper improvements |
| 60 |
* Fix a number of intermittent test issues |
| 61 |
|
| 62 |
=== 1.1.0 |
| 63 |
|
| 64 |
* Add Transport:secure/0 |
| 65 |
* Add SSL partial_chain option |
| 66 |
* Stop reporting errors on {error, closed} in accept_ack |
| 67 |
|
| 68 |
=== 1.0.0 |
| 69 |
|
| 70 |
* Initial release |