Skip to content

v1.2.0-M4

Pre-release
Pre-release
Compare
Choose a tag to compare
@violetagg violetagg released this 09 Jul 13:48
· 254 commits to main since this release
24d4fde

Reactor Netty 1.2.0-M4 is part of 2024.0.0-M4 Release Train.

This milestone adds HTTP/3 client support.

Enablement of the HTTP/3 client support:

The example below shows one simple configuration for the HttpClient:

public class Application {

	public static void main(String[] args) throws Exception {
		HttpClient client =
				HttpClient.create()
				          .remoteAddress(() -> new InetSocketAddress("www.google.com", 443))
				          .protocol(HttpProtocol.HTTP3)
				          .secure()
				          .http3Settings(spec -> spec.idleTimeout(Duration.ofSeconds(5))
				                                     .maxData(10000000)
				                                     .maxStreamDataBidirectionalLocal(1000000));

		Tuple2<String, HttpHeaders> response =
				client.get()
				      .uri("/")
				      .responseSingle((res, bytes) -> bytes.asString()
				                                           .zipWith(Mono.just(res.responseHeaders())))
				      .block();

		System.out.println("Used stream ID: " + response.getT2().get("x-http3-stream-id"));
		System.out.println("Response: " + response.getT1());
	}
}

Reactor Netty 1.2.0-M4 inherits all changes from the 1.0.x and 1.1.x branches at the point this release was cut.

What's Changed

✨ New features and improvements

🐞 Bug fixes

  • Close the connection when decoding exception happens by @violetagg in #3290
  • Http2Pool: when applying acquireTimeout, check for current pending Borrowers by @violetagg in #3300
  • When an explicit EventLoopGroup is configured ensure only one connection pool is created by @violetagg in #3321

Full Changelog: v1.2.0-M3...v1.2.0-M4