@Test
    void test() throws Throwable {
        final int numEventLoops = Flags.numCommonWorkers();
        final ClientFactory clientFactory = ClientFactory.builder()
                .tlsNoVerify()
                .maxNumEventLoopsPerEndpoint(numEventLoops)
                .maxNumEventLoopsPerHttp1Endpoint(numEventLoops)
                .build();
        final WebClient client = WebClient.builder(server.uri(SessionProtocol.H1))
                                          .factory(clientFactory)
                                          .build();
        final Semaphore semaphore = new Semaphore(numEventLoops);
        final BlockingQueue<Throwable> caughtExceptions = new LinkedBlockingDeque<>();
        int i = 0;
        try {
            for (; i < 1000; i++) {
                server.requestContextCaptor().clear();
                semaphore.acquire();
                client.get("/")
                      .aggregate()
                      .handle((res, cause) -> {
                          semaphore.release();
                          if (cause != null) {
                              caughtExceptions.add(cause);
                          } else {
                              try {
                                  assertThat(res.status()).isSameAs(HttpStatus.OK);
                                  assertThat(res.content()).isEqualTo(content);
                              } catch (Throwable t) {
                                  caughtExceptions.add(t);
                              }
                          }
                          return null;
                      });

                final Throwable cause = caughtExceptions.poll();
                if (cause != null) {
                    throw cause;
                }
            }
        } catch (Throwable cause) {
            logger.warn("Received a corrupt response after {} request(s)", i);
            throw cause;
        }
        clientFactory.close();
    }
Makes sure Armeria is unaffected by https://github.com/netty/netty/issues/11792
core/src/test/java/com/linecorp/armeria/server/HttpServerTlsCorruptionTest.java