You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hc.apache.org by ol...@apache.org on 2006/06/02 11:36:19 UTC
svn commit: r411109 -
/jakarta/httpcomponents/httpcore/trunk/src/java/org/apache/http/params/HttpConnectionParams.java
Author: olegk
Date: Fri Jun 2 02:36:19 2006
New Revision: 411109
URL: http://svn.apache.org/viewvc?rev=411109&view=rev
Log:
Fix for bug HTTPCORE-4: optional header limits to contain OOME risks
Improved javadoc
Modified:
jakarta/httpcomponents/httpcore/trunk/src/java/org/apache/http/params/HttpConnectionParams.java
Modified: jakarta/httpcomponents/httpcore/trunk/src/java/org/apache/http/params/HttpConnectionParams.java
URL: http://svn.apache.org/viewvc/jakarta/httpcomponents/httpcore/trunk/src/java/org/apache/http/params/HttpConnectionParams.java?rev=411109&r1=411108&r2=411109&view=diff
==============================================================================
--- jakarta/httpcomponents/httpcore/trunk/src/java/org/apache/http/params/HttpConnectionParams.java (original)
+++ jakarta/httpcomponents/httpcore/trunk/src/java/org/apache/http/params/HttpConnectionParams.java Fri Jun 2 02:36:19 2006
@@ -108,8 +108,9 @@
public static final String STALE_CONNECTION_CHECK = "http.connection.stalecheck";
/**
- * Determines the maximum line length limit. If set, any HTTP line exceeding this
- * limit will cause an IOException
+ * Determines the maximum line length limit. If set to a positive value, any HTTP
+ * line exceeding this limit will cause an IOException. A negative or zero value
+ * will effectively disable the check.
* <p>
* This parameter expects a value of type {@link Integer}.
* </p>
@@ -117,9 +118,10 @@
public static final String MAX_LINE_LENGTH = "http.connection.max-line-length";
/**
- * Determines the maximum HTTP header count allowed. If set, the number of HTTP
- * headers received from the data stream exceeding this limit will cause an
- * IOException
+ * Determines the maximum HTTP header count allowed. If set to a positive value,
+ * the number of HTTP headers received from the data stream exceeding this limit
+ * will cause an IOException. A negative or zero value will effectively disable
+ * the check.
* <p>
* This parameter expects a value of type {@link Integer}.
* </p>