Skip to content

0.15.0

Choose a tag to compare

@williamthome williamthome released this 11 Nov 19:10
· 135 commits to main since this release
cd760bf

Highlights

New

  • roadrunner_listener:quic_port/1 returns the UDP port a listener serves HTTP/3 on, so a client or a test can reach HTTP/3 on a port => 0 listener, whose UDP port is picked apart from its TCP one (#491)
  • idle_recv_buffer: idle plain-TCP connections hold a 16 KB read buffer instead of 64 KB, growing to recv_buffer only once a large body is on its way. On 2000 idle connections, the memory the BEAM allocates for a keep-alive connection went from about 73 KB to 25 KB, and for a WebSocket session from about 62 KB to 20 KB, with throughput unchanged. How much of that the OS sees as resident grows with traffic: on a freshly started server the difference is a few KB per connection (#488)

Sturdier

  • In manual body mode, an HTTP/3 request whose headers and whole body arrive together reads its body through a reader like any other, so read_body(Req, #{length => N}) gives pieces of at most N however the body arrived (#492)
  • QUIC sockets no longer set reuseaddr, which on Linux let a socket bound to port 0 be given a port another socket already held, so packets for one reached the other, and a port => 0 listener picks its HTTP/3 pool's port so two pools never share one (#493, #494)

Upgrading from 0.14

  • In manual body mode over HTTP/3, a small request that arrives in one packet no longer has body set before the handler reads it: read it with roadrunner_req:read_body/1,2, as for any manual-mode request (#492)
  • A listener whose HTTP/3 port is held by another program's socket with reuseaddr set now fails to start with eaddrinuse, where before it started and shared that port's traffic (#493)

What's Changed

Full Changelog: 0.14.2...0.15.0