You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bi...@apache.org on 2003/05/22 06:47:32 UTC
cvs commit: jakarta-tomcat-connectors/http11/src/java/org/apache/coyote/http11 Constants.java Http11Protocol.java
billbarker 2003/05/21 21:47:32
Modified: http11/src/java/org/apache/coyote/http11 Constants.java
Http11Protocol.java
Log:
Restoring the old default values.
Revision Changes Path
1.15 +5 -1 jakarta-tomcat-connectors/http11/src/java/org/apache/coyote/http11/Constants.java
Index: Constants.java
===================================================================
RCS file: /home/cvs/jakarta-tomcat-connectors/http11/src/java/org/apache/coyote/http11/Constants.java,v
retrieving revision 1.14
retrieving revision 1.15
diff -u -r1.14 -r1.15
--- Constants.java 14 May 2003 17:53:03 -0000 1.14
+++ Constants.java 22 May 2003 04:47:32 -0000 1.15
@@ -76,7 +76,11 @@
*/
public static final String Package = "org.apache.coyote.http11";
-
+ public static final int DEFAULT_CONNECTION_LINGER = -1;
+ public static final int DEFAULT_CONNECTION_TIMEOUT = 60000;
+ public static final int DEFAULT_CONNECTION_UPLOAD_TIMEOUT = 300000;
+ public static final int DEFAULT_SERVER_SOCKET_TIMEOUT = 0;
+
/**
* Server string.
*/
1.25 +7 -1 jakarta-tomcat-connectors/http11/src/java/org/apache/coyote/http11/Http11Protocol.java
Index: Http11Protocol.java
===================================================================
RCS file: /home/cvs/jakarta-tomcat-connectors/http11/src/java/org/apache/coyote/http11/Http11Protocol.java,v
retrieving revision 1.24
retrieving revision 1.25
diff -u -r1.24 -r1.25
--- Http11Protocol.java 11 Apr 2003 20:19:52 -0000 1.24
+++ Http11Protocol.java 22 May 2003 04:47:32 -0000 1.25
@@ -88,6 +88,9 @@
{
public Http11Protocol() {
+ setSoLinger(Constants.DEFAULT_CONNECTION_LINGER);
+ setSoTimeout(Constants.DEFAULT_CONNECTION_TIMEOUT);
+ setServerSoTimeout(Constants.DEFAULT_SERVER_SOCKET_TIMEOUT);
}
/**
@@ -216,7 +219,10 @@
private int timeout = 300000; // 5 minutes as in Apache HTTPD server
private String reportedname;
private int socketCloseDelay=-1;
- private boolean disableUploadTimeout = false;
+ private boolean disableUploadTimeout = true;
+ /**
+ * Compression value.
+ */
private String compression = "off";
// -------------------- Pool setup --------------------
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org