Migrating from Gun 2.4 to 2.5

Gun 2.5 fixes a number of security vulnerabilities. It also has a few new options.

Gun 2.5 updates Cowlib to 2.19.0. Both applications must be updated as they both contain security fixes.

Gun 2.5 requires Erlang/OTP 24.0 or greater.

Features added

  • A compat Websocket compression mode has been added. In this mode, Gun uses default compression and does not send parameters to accommodate servers that do not support them.
  • The HTTP/2 option max_headers is now documented.
  • Update Cowlib to 2.19.0.

Bugs fixed

  • The HTTP/1.1 connection could get into a state where it would no longer read from the socket. This has been addressed.

Gun 2.8 User Guide

Navigation

Version select

Sponsor me!

Support my work on Cowboy, Ranch, Gun and Erlang.mk via GitHub Sponsors. The funds cover domain names and development tools.