if (existing != null) {
UndertowLogger.REQUEST_LOGGER.debug("Resuming existing session, not doing NPN negotiation");
if (existing.equals(SPDY_3_1) || existing.equals(SPDY_3)) {
SpdyChannel sc = new SpdyChannel(channel, bufferPool, new ImmediatePooled<>(ByteBuffer.wrap(new byte[0])), heapBufferPool, false);
sc.getReceiveSetter().set(new SpdyReceiveListener(rootHandler, getUndertowOptions(), bufferSize, statisticsEnabled ? connectorStatistics : null));
sc.resumeReceives();
} else {
if (delegate == null) {
UndertowLogger.REQUEST_IO_LOGGER.couldNotInitiateSpdyConnection();
IoUtils.safeClose(channel);
return;