Repository navigation
0.15.0
Highlights
New
roadrunner_listener:quic_port/1returns the UDP port a listener serves HTTP/3 on, so a client or a test can reach HTTP/3 on aport => 0listener, 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 torecv_bufferonly 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 mostNhowever 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 aport => 0listener 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
bodyset before the handler reads it: read it withroadrunner_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
reuseaddrset now fails to start witheaddrinuse, where before it started and shared that port's traffic (#493)
What's Changed
- Stop calling HTTP/3 experimental and name what it lacks by @williamthome in #486
- Read with a 16 KB buffer until a large body arrives by @williamthome in #488
- Document TLS idle memory and prefer cacertfile over DER cacerts by @williamthome in #489
- Document min_heap_size for large responses and how to profile by @williamthome in #490
- Read a manual-mode HTTP/3 body that came whole through a reader by @williamthome in #492
- Add quic_port/1 to read the port a listener serves HTTP/3 on by @williamthome in #491
- Update rebar.config deps by @renovate[bot] in #487
- Open QUIC sockets without reuseaddr so port 0 never shares a port by @williamthome in #493
- Pick a port-0 HTTP/3 pool's port so it is never shared by @williamthome in #494
Full Changelog: 0.14.2...0.15.0