Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files
CHUKWA-710. Set TCP socket reuse option
git-svn-id: https://svn.apache.org/repos/asf/chukwa/trunk@1589550 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information
Shreyas committed Apr 24, 2014
1 parent d1d9476 commit 65b03cd41768b716319a4642ee30279ae030e628
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
@@ -55,6 +55,7 @@ public Dispatcher(int port) {
public void run() {
try{
listener = new ServerSocket(port);
listener.setReuseAddress(true);
Socket server;

while(running){
@@ -336,6 +336,7 @@ private void startHttpServer(Configuration conf) throws Exception {
jettyConnector.setLowResourcesConnections(HTTP_SERVER_THREADS - 10);
jettyConnector.setLowResourceMaxIdleTime(1500);
jettyConnector.setPort(portNum);
jettyConnector.setReuseAddress(true);

// Set up jetty server, using connector
jettyServer = new Server(portNum);

0 comments on commit 65b03cd

Please sign in to comment.