openListener = new Http2OpenListener(new ByteBufferSlicePool(BufferAllocator.DIRECT_BYTE_BUFFER_ALLOCATOR, 2 * BUFFER_SIZE, 100 * BUFFER_SIZE), OptionMap.create(UndertowOptions.ENABLE_SPDY, true), BUFFER_SIZE);
acceptListener = ChannelListeners.openListenerAdapter(openListener);
SSLContext serverContext = Http2TestRunner.getServerSslContext();
XnioSsl xnioSsl = new JsseXnioSsl(xnio, OptionMap.EMPTY, serverContext);
server = xnioSsl.createSslConnectionServer(worker, new InetSocketAddress(TestEnvironment.getHost(), TestEnvironment.getPort()), acceptListener, serverOptions);
server.resumeAccepts();
openListener.setRootHandler(new UndertowTestHandler());
server.resumeAccepts();
} catch (Exception e) {
throw new RuntimeException(e);