axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d...@apache.org
Subject svn commit: r232574 - /webservices/axis/trunk/java/modules/core/src/org/apache/axis2/transport/http/server/SimpleHttpServerConnection.java
Date Sun, 14 Aug 2005 03:55:48 GMT
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;
             }



Mime
View raw message