You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by di...@apache.org on 2005/08/14 05:55:48 UTC

svn commit: r232574 - /webservices/axis/trunk/java/modules/core/src/org/apache/axis2/transport/http/server/SimpleHttpServerConnection.java

Author: dims
Date: Sat Aug 13 20:55:45 2005
New Revision: 232574

URL: http://svn.apache.org/viewcvs?rev=232574&view=rev
Log:
tweak network params and see if that helps.


Modified:
    webservices/axis/trunk/java/modules/core/src/org/apache/axis2/transport/http/server/SimpleHttpServerConnection.java

Modified: webservices/axis/trunk/java/modules/core/src/org/apache/axis2/transport/http/server/SimpleHttpServerConnection.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/core/src/org/apache/axis2/transport/http/server/SimpleHttpServerConnection.java?rev=232574&r1=232573&r2=232574&view=diff
==============================================================================
--- webservices/axis/trunk/java/modules/core/src/org/apache/axis2/transport/http/server/SimpleHttpServerConnection.java (original)
+++ webservices/axis/trunk/java/modules/core/src/org/apache/axis2/transport/http/server/SimpleHttpServerConnection.java Sat Aug 13 20:55:45 2005
@@ -64,7 +64,9 @@
             throw new IllegalArgumentException("Socket may not be null");
         }
         this.socket = socket;
-        this.socket.setSoTimeout(500);
+        this.socket.setKeepAlive(true);
+        this.socket.setSoTimeout(0);
+        this.socket.setTcpNoDelay(true);
         this.in = socket.getInputStream();
         this.out = socket.getOutputStream();
     }
@@ -74,6 +76,7 @@
             if (socket != null) {
                 in.close();
                 out.close();
+                socket.shutdownOutput();
                 socket.close();
                 socket = null;
             }