File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed
hbase-http/src/main/java/org/apache/hadoop/hbase/http Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -115,6 +115,11 @@ public class HttpServer implements FilterContainer {
115
115
// limitation otherwise the UTs will fail
116
116
private static final int DEFAULT_MAX_HEADER_SIZE = Character .MAX_VALUE - 1 ;
117
117
118
+ // Add configuration for jetty idle timeout
119
+ private static final String HTTP_JETTY_IDLE_TIMEOUT = "hbase.ui.connection.idleTimeout" ;
120
+ // Default jetty idle timeout
121
+ private static final long DEFAULT_HTTP_JETTY_IDLE_TIMEOUT = 30000 ;
122
+
118
123
static final String FILTER_INITIALIZERS_PROPERTY = "hbase.http.filter.initializers" ;
119
124
static final String HTTP_MAX_THREADS = "hbase.http.max.threads" ;
120
125
@@ -467,6 +472,9 @@ public HttpServer build() throws IOException {
467
472
468
473
// default settings for connector
469
474
listener .setAcceptQueueSize (128 );
475
+ // config idle timeout for jetty
476
+ listener
477
+ .setIdleTimeout (conf .getLong (HTTP_JETTY_IDLE_TIMEOUT , DEFAULT_HTTP_JETTY_IDLE_TIMEOUT ));
470
478
if (Shell .WINDOWS ) {
471
479
// result of setting the SO_REUSEADDR flag is different on Windows
472
480
// http://msdn.microsoft.com/en-us/library/ms740621(v=vs.85).aspx
You can’t perform that action at this time.
0 commit comments