@Test public void shouldCreateAServerConnectorWithConfiguredPortAndBuffersize() throws Exception { assertThat(connector.getPort(), is(1234)); assertThat(connector.getHost(), is("foo")); assertThat(connector.getIdleTimeout(), is(200l)); assertThat(configuration.getOutputBufferSize(), is(100)); }
@Test public void shouldCreateSslConnectorWithRelevantPortAndTimeout() { assertThat(sslSocketConnector.getConnector() instanceof ServerConnector, is(true)); ServerConnector connector = (ServerConnector) sslSocketConnector.getConnector(); assertThat(connector.getPort(), is(1234)); assertThat(connector.getHost(), is("foo")); assertThat(connector.getIdleTimeout(), is(200l)); }
http.setIdleTimeout(Math.max(http.getIdleTimeout(), requestTimeout)); https.setIdleTimeout(Math.max(https.getIdleTimeout(), requestTimeout));
protected SelectChannelEndPoint newEndPoint(SocketChannel channel, ManagedSelector selectSet, SelectionKey key) throws IOException { return new SelectChannelEndPoint(channel, selectSet, key, getScheduler(), getIdleTimeout()); }
protected SelectChannelEndPoint newEndPoint(SocketChannel channel, ManagedSelector selectSet, SelectionKey key) throws IOException { return new SelectChannelEndPoint(channel, selectSet, key, getScheduler(), getIdleTimeout()); }
protected SelectChannelEndPoint newEndPoint(SocketChannel channel, ManagedSelector selectSet, SelectionKey key) throws IOException { return new SelectChannelEndPoint(channel, selectSet, key, getScheduler(), getIdleTimeout()); }
protected SelectChannelEndPoint newEndPoint(SocketChannel channel, ManagedSelector selectSet, SelectionKey key) throws IOException { return new SelectChannelEndPoint(channel, selectSet, key, getScheduler(), getIdleTimeout()); }
protected ChannelEndPoint newEndPoint(SocketChannel channel, ManagedSelector selectSet, SelectionKey key) throws IOException { SocketChannelEndPoint endpoint = new SocketChannelEndPoint(channel, selectSet, key, getScheduler()); endpoint.setIdleTimeout(getIdleTimeout()); return endpoint; }
http.setIdleTimeout(Math.max(http.getIdleTimeout(), requestTimeout)); https.setIdleTimeout(Math.max(https.getIdleTimeout(), requestTimeout));
serverConnector.setIdleTimeout(connectorPrototype.getIdleTimeout()); serverConnector.setSoLingerTime(connectorPrototype.getSoLingerTime()); serverConnector.setAcceptorPriorityDelta(connectorPrototype.getAcceptorPriorityDelta());
serverConnector.setIdleTimeout(connectorPrototype.getIdleTimeout()); serverConnector.setSoLingerTime(connectorPrototype.getSoLingerTime()); serverConnector.setAcceptorPriorityDelta(connectorPrototype.getAcceptorPriorityDelta());