if (SPDY_3.equals(selected) || SPDY_3_1.equals(selected)) {
//cool, we have a spdy connection.
SpdyChannel channel = new SpdyChannel(this.channel, bufferPool, buffer, heapBufferPool);
free = false;
channel.getReceiveSetter().set(new SpdyReceiveListener(rootHandler, getUndertowOptions(), bufferSize));
channel.resumeReceives();
return;
} else if (HTTP_1_1.equals(selected) || res > 0) {
if (delegate == null) {
UndertowLogger.REQUEST_IO_LOGGER.couldNotInitiateSpdyConnection();
IoUtils.safeClose(channel);