Return-Path: Delivered-To: apmail-jakarta-httpcomponents-dev-archive@www.apache.org Received: (qmail 83626 invoked from network); 13 Jun 2007 20:42:48 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 13 Jun 2007 20:42:47 -0000 Received: (qmail 67139 invoked by uid 500); 13 Jun 2007 20:42:50 -0000 Delivered-To: apmail-jakarta-httpcomponents-dev-archive@jakarta.apache.org Received: (qmail 67109 invoked by uid 500); 13 Jun 2007 20:42:50 -0000 Mailing-List: contact httpcomponents-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "HttpComponents Project" Delivered-To: mailing list httpcomponents-dev@jakarta.apache.org Received: (qmail 67097 invoked by uid 99); 13 Jun 2007 20:42:50 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 13 Jun 2007 13:42:50 -0700 X-ASF-Spam-Status: No, hits=-100.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 13 Jun 2007 13:42:46 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 1B1E471413D for ; Wed, 13 Jun 2007 13:42:26 -0700 (PDT) Message-ID: <21782952.1181767346108.JavaMail.jira@brutus> Date: Wed, 13 Jun 2007 13:42:26 -0700 (PDT) From: "Oleg Kalnichevski (JIRA)" To: httpcomponents-dev@jakarta.apache.org Subject: [jira] Commented: (HTTPCORE-81) Enforce maximum line length and header count In-Reply-To: <24931351.1181577506297.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/HTTPCORE-81?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12504411 ] Oleg Kalnichevski commented on HTTPCORE-81: ------------------------------------------- > The naming of HttpMessageParser.reset(HttpParams) is not optimal since the class already has a reset() method. I moved maxLineLen and maxHeaderCount to the HttpMessageParser constructor, since these parameters are applied only once at the initialization time. I am also going to do away with the #reset method in blocking HttpDataTransmitter and HttpDataReceiver for the same reason. > Revised patch to also check length of folded headers. It seems to be possible to work around the limits set for the blocking > implementation using folded headers as well Well spotted. I'll fix the problem in HttpCore base > it might be a good idea to introduce an additional property HttpConnectionParams.MAX_HEADER_LENGTH I am not sure there is really much practical value in being able to differentiate the two cases, but I do not mind adding the parameter if you think otherwise. The patch applied with some minor tweaks mentioned above. Many thanks, Steffen Oleg > Enforce maximum line length and header count > -------------------------------------------- > > Key: HTTPCORE-81 > URL: https://issues.apache.org/jira/browse/HTTPCORE-81 > Project: HttpComponents Core > Issue Type: Improvement > Components: HttpCore NIO > Reporter: Steffen Pingel > Attachments: httpcore-limit-message-length.patch, httpcore-limit-message-length.patch > > > The NIO module does not enforce the 'http.connection.max-line-length' and 'http.connection.max-header-count' parameters. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. --------------------------------------------------------------------- To unsubscribe, e-mail: httpcomponents-dev-unsubscribe@jakarta.apache.org For additional commands, e-mail: httpcomponents-dev-help@jakarta.apache.org