mirror of https://github.com/apache/druid.git
Merge pull request #770 from metamx/jetty-conn-issue-fix
upgrade jetty and workaround for half open connection
This commit is contained in:
commit
16c9a029a6
8
pom.xml
8
pom.xml
|
@ -324,22 +324,22 @@
|
|||
<dependency>
|
||||
<groupId>org.eclipse.jetty</groupId>
|
||||
<artifactId>jetty-server</artifactId>
|
||||
<version>9.2.2.v20140723</version>
|
||||
<version>9.2.3.v20140905</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.eclipse.jetty</groupId>
|
||||
<artifactId>jetty-servlet</artifactId>
|
||||
<version>9.2.2.v20140723</version>
|
||||
<version>9.2.3.v20140905</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.eclipse.jetty</groupId>
|
||||
<artifactId>jetty-servlets</artifactId>
|
||||
<version>9.2.2.v20140723</version>
|
||||
<version>9.2.3.v20140905</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.eclipse.jetty</groupId>
|
||||
<artifactId>jetty-proxy</artifactId>
|
||||
<version>9.2.2.v20140723</version>
|
||||
<version>9.2.3.v20140905</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>joda-time</groupId>
|
||||
|
|
|
@ -158,6 +158,9 @@ public class JettyServerModule extends JerseyServletModule
|
|||
ServerConnector connector = new ServerConnector(server);
|
||||
connector.setPort(node.getPort());
|
||||
connector.setIdleTimeout(Ints.checkedCast(config.getMaxIdleTime().toStandardDuration().getMillis()));
|
||||
// workaround suggested in -
|
||||
// https://bugs.eclipse.org/bugs/show_bug.cgi?id=435322#c66 for jetty half open connection issues during failovers
|
||||
connector.setAcceptorPriorityDelta(-1);
|
||||
|
||||
server.setConnectors(new Connector[]{connector});
|
||||
|
||||
|
|
Loading…
Reference in New Issue