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 07:15:23 UTC
svn commit: r232580 -
/webservices/axis/trunk/java/modules/core/src/org/apache/axis2/transport/http/server/SimpleHttpServerConnection.java
Author: dims
Date: Sat Aug 13 22:15:20 2005
New Revision: 232580
URL: http://svn.apache.org/viewcvs?rev=232580&view=rev
Log:
Trying Tomcat's settings for various params.
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=232580&r1=232579&r2=232580&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 22:15:20 2005
@@ -64,8 +64,9 @@
throw new IllegalArgumentException("Socket may not be null");
}
this.socket = socket;
+ this.socket.setSoLinger(false, 0);
this.socket.setKeepAlive(true);
- this.socket.setSoTimeout(0);
+ this.socket.setSoTimeout(60000);
this.socket.setTcpNoDelay(true);
this.in = socket.getInputStream();
this.out = socket.getOutputStream();
@@ -224,7 +225,7 @@
int i = 0;
while ((i = content.read(tmp)) >= 0) {
outsream.write(tmp, 0, i);
- }
+ }
if (outsream instanceof ChunkedOutputStream) {
((ChunkedOutputStream)outsream).finish();
}