axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d...@apache.org
Subject svn commit: r358964 - in /webservices/axis2/trunk/java: etc/project.properties modules/core/src/org/apache/axis2/transport/http/server/SimpleHttpServerConnection.java
Date Sun, 25 Dec 2005 04:36:34 GMT
Author: dims
Date: Sat Dec 24 20:36:28 2005
New Revision: 358964

URL: http://svn.apache.org/viewcvs?rev=358964&view=rev
Log:
update to latest commons-httpclient and set socket read timeout to 1 minute in simple http
server

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

Modified: webservices/axis2/trunk/java/etc/project.properties
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/etc/project.properties?rev=358964&r1=358963&r2=358964&view=diff
==============================================================================
--- webservices/axis2/trunk/java/etc/project.properties (original)
+++ webservices/axis2/trunk/java/etc/project.properties Sat Dec 24 20:36:28 2005
@@ -77,7 +77,7 @@
 commons.codec.version=1.3
 commons.discovery.version=0.2
 commons.fileupload.version=1.0
-commons.httpclient.version=3.0-rc3
+commons.httpclient.version=3.0
 commons.logging.version=1.0.4
 geronimo.spec.activation.version=1.0.2-rc4
 geronimo.spec.javamail.version=1.3.1-rc5

Modified: webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/transport/http/server/SimpleHttpServerConnection.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/transport/http/server/SimpleHttpServerConnection.java?rev=358964&r1=358963&r2=358964&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/transport/http/server/SimpleHttpServerConnection.java
(original)
+++ webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/transport/http/server/SimpleHttpServerConnection.java
Sat Dec 24 20:36:28 2005
@@ -52,6 +52,7 @@
     private OutputStream out = null;
     private boolean keepAlive = false;
     private InputStream in = null;
+    public static final int DEFAULT_TIMEOUT = 60000;  // 1 Minute
 
     public SimpleHttpServerConnection(final Socket socket) throws IOException {
         super();
@@ -62,7 +63,7 @@
 
         this.socket = socket;
         this.socket.setTcpNoDelay(true);
-        this.socket.setSoTimeout(500);
+        this.socket.setSoTimeout(DEFAULT_TIMEOUT);
         this.in = socket.getInputStream();
         this.out = socket.getOutputStream();
     }



Mime
View raw message