protocol = protocolString != null ? Protocol.get(protocolString) : Protocol.HTTP_1_1;
handshake = unverifiedHandshake; protocol = maybeProtocol != null ? Protocol.get(maybeProtocol) : Protocol.HTTP_1_1; success = true;
handshake = unverifiedHandshake; protocol = maybeProtocol != null ? Protocol.get(maybeProtocol) : Protocol.HTTP_1_1; success = true;
private void run() throws Exception { ServerSocket serverSocket = new ServerSocket(8888); serverSocket.setReuseAddress(true); while (true) { Socket socket = null; try { socket = serverSocket.accept(); SSLSocket sslSocket = doSsl(socket); String protocolString = Platform.get().getSelectedProtocol(sslSocket); Protocol protocol = protocolString != null ? Protocol.get(protocolString) : null; if (protocol != Protocol.HTTP_2) { throw new ProtocolException("Protocol " + protocol + " unsupported"); } Http2Connection connection = new Http2Connection.Builder(false) .socket(sslSocket) .listener(this) .build(); connection.start(); } catch (IOException e) { logger.log(Level.INFO, "Http2Server connection failure: " + e); Util.closeQuietly(socket); } catch (Exception e) { logger.log(Level.WARNING, "Http2Server unexpected failure", e); Util.closeQuietly(socket); } } }
protocol = protocolString != null ? Protocol.get(protocolString) : Protocol.HTTP_1_1;
handshake = unverifiedHandshake; protocol = maybeProtocol != null ? Protocol.get(maybeProtocol) : Protocol.HTTP_1_1; success = true;
handshake = unverifiedHandshake; protocol = maybeProtocol != null ? Protocol.get(maybeProtocol) : Protocol.HTTP_1_1; success = true;
handshake = unverifiedHandshake; protocol = maybeProtocol != null ? Protocol.get(maybeProtocol) : Protocol.HTTP_1_1; success = true;
handshake = unverifiedHandshake; protocol = maybeProtocol != null ? Protocol.get(maybeProtocol) : Protocol.HTTP_1_1; success = true;
handshake = unverifiedHandshake; protocol = maybeProtocol != null ? Protocol.get(maybeProtocol) : Protocol.HTTP_1_1; success = true;