Spark: Use of deprecated setSoLingerTime Jetty method causes a warning.

Created on 5 Dec 2018  路  3Comments  路  Source: perwendel/spark

A call to a Jetty deprecated method setSoLingerTime should be removed to avoid pollution on server initialization log :

[info] org.eclipse.jetty.util.log:193         - Logging initialized @3471ms to org.eclipse.jetty.util.log.Slf4jLog
[WARN] org.eclipse.jetty.server.AbstractConnector:450  - Ignoring deprecated socket close linger time
[info] spark.embeddedserver.jetty.EmbeddedJettyServer:142  - == Spark has ignited ...

Call done at SocketConnectorFactory.java(L105)

private static void initializeConnector(ServerConnector connector, String host, int port) {
    // Set some timeout options to make debugging easier.
    connector.setIdleTimeout(TimeUnit.HOURS.toMillis(1));
    connector.setSoLingerTime(-1);
    connector.setHost(host);
    connector.setPort(port);
}

Most helpful comment

Thanks, merged.

All 3 comments

Pinging @tipsy @perwendel easy one to merge

Thanks, merged.

Fixed

Was this page helpful?
0 / 5 - 0 ratings

Related issues

wowselim picture wowselim  路  5Comments

xizhang picture xizhang  路  6Comments

kiriti999 picture kiriti999  路  4Comments

ugoscaiella picture ugoscaiella  路  5Comments

dmacvicar picture dmacvicar  路  5Comments