migrating_from_2.8.asciidoc 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. [appendix]
  2. == Migrating from Cowboy 2.8 to 2.9
  3. Cowboy 2.9 implements graceful shutdown of connection
  4. processes for both HTTP/1.1 and HTTP/2 connections.
  5. Cowboy 2.9 is the first release to support the much
  6. awaited Erlang/OTP 24 out of the box. While users that
  7. were using Ranch 2.0 already were ready for OTP 24,
  8. the Ranch version used by Cowboy out of the box was
  9. not compatible and had to be updated.
  10. Cowboy 2.9 also contains a small number of tweaks
  11. and bug fixes.
  12. Cowboy 2.9 requires Erlang/OTP 22.0 or greater.
  13. === Features added
  14. * Cowboy will now gracefully shutdown HTTP/1.1 and HTTP/2
  15. connections when the supervisor asks the connection
  16. process to exit, or when `sys:terminate/2,3` is used.
  17. Two new configuration options were added for HTTP/2
  18. to determine the timeouts for the graceful shutdown
  19. steps.
  20. * REST handler `AcceptCallback` can now return `{created, URI}`
  21. or `{see_other, URI}` to determine what response status code
  22. should be sent (typically to differentiate between a new
  23. resource and an update). The return value `{true, URI}` is
  24. now deprecated.
  25. * Update Ranch to 1.8.0.
  26. * Update Cowlib to 2.11.0.
  27. === Bugs fixed
  28. * Fix concurrent body streaming getting stuck with HTTP/2.
  29. The alarm could get into blocking state indefinitely
  30. when two or more request processes were streaming bodies.
  31. * Fix HTTP/2 rate limiting using the wrong default values
  32. in some cases.
  33. * Don't produce an error report when the request process
  34. exited normally (`normal` or `shutdown` exit reasons).
  35. * Fix `cowboy_tracer_h` to support trace messages without
  36. timestamps.