Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ public final class HttpServer2 implements FilterContainer {

public static final String HTTP_SOCKET_BACKLOG_SIZE_KEY =
"hadoop.http.socket.backlog.size";
public static final int HTTP_SOCKET_BACKLOG_SIZE_DEFAULT = 128;
public static final int HTTP_SOCKET_BACKLOG_SIZE_DEFAULT = 500;
public static final String HTTP_MAX_THREADS_KEY = "hadoop.http.max.threads";
public static final String HTTP_ACCEPTOR_COUNT_KEY =
"hadoop.http.acceptor.count";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -746,6 +746,13 @@ public void testBacklogSize() throws Exception
assertEquals(backlogSize, listener.getAcceptQueueSize());
}

@Test
public void testBacklogSize2() throws Exception
{
Configuration conf = new Configuration();
assertEquals(500, conf.get(HttpServer2.HTTP_SOCKET_BACKLOG_SIZE_KEY));
}

@Test
public void testIdleTimeout() throws Exception {
final int idleTimeout = 1000;
Expand Down