Return-Path: Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: (qmail 62823 invoked from network); 9 Oct 2008 18:17:16 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 9 Oct 2008 18:17:16 -0000 Received: (qmail 8238 invoked by uid 500); 9 Oct 2008 18:17:01 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 8215 invoked by uid 500); 9 Oct 2008 18:17:01 -0000 Mailing-List: contact users-help@tomcat.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tomcat Users List" Delivered-To: mailing list users@tomcat.apache.org Received: (qmail 8194 invoked by uid 99); 9 Oct 2008 18:17:01 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 09 Oct 2008 11:17:01 -0700 X-ASF-Spam-Status: No, hits=1.3 required=10.0 tests=DNS_FROM_SECURITYSAGE,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [76.96.62.64] (HELO QMTA07.westchester.pa.mail.comcast.net) (76.96.62.64) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 09 Oct 2008 18:15:56 +0000 Received: from OMTA08.westchester.pa.mail.comcast.net ([76.96.62.12]) by QMTA07.westchester.pa.mail.comcast.net with comcast id Qeqm1a0080Fqzac57iGPZA; Thu, 09 Oct 2008 18:16:23 +0000 Received: from [192.168.5.111] ([70.90.82.201]) by OMTA08.westchester.pa.mail.comcast.net with comcast id QiGN1a00h4Ld74e3UiGNP5; Thu, 09 Oct 2008 18:16:23 +0000 X-Authority-Analysis: v=1.0 c=1 a=xe8BsctaAAAA:8 a=HIgybylzk8bUZtInhQQA:9 a=mS7ByPZjBYVq8uVEbd1hzcy9OVgA:4 a=rPt6xJ-oxjAA:10 Message-ID: <48EE4A74.2030303@christopherschultz.net> Date: Thu, 09 Oct 2008 14:16:20 -0400 From: Christopher Schultz User-Agent: Thunderbird 2.0.0.17 (Windows/20080914) MIME-Version: 1.0 To: Tomcat Users List Subject: Re: Authentication behaviour References: <48E2CBE2.32604.A6BF270@maurizio.lotauro.territoriumonline.com> <48ED59C4.21088.519004D@maurizio.lotauro.territoriumonline.com> In-Reply-To: <48ED59C4.21088.519004D@maurizio.lotauro.territoriumonline.com> X-Enigmail-Version: 0.95.7 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Maurizio, Maurizio Lotauro wrote: > On 6 Oct 2008 at 14:58, Christopher Schultz wrote: >> Is it a problem to get this 401 before the request is complete? > > In my case it was a problem because the receive of the server response trigger an "end of > operation" state. Then the repeat of the transmission implicitly interrupt the previous one. > Internally it works asyncronous, and this behaviour breaks its state diagram. If you are writing network code, you need to handle disconnects at any time. >> That's a reasonable interpretation of the spec, but obviously not >> a practical one. > > Even omitting "and interpreting"? Sure. The server can interpret part of the request and respond whenever it wants. Here's another good example: some servers have a file-size upload limit. If the server were required to process the entire file upload before rejecting it (based upon the Content-Length header), DOS attacks would be trivial to mount against any web server. > Anyway, as said I my client now is able to handle this situation. The point I wanted only raise > up was what IMHO doesn't fully adhere to the rfc 2616. Maybe other clients can have the > same problem. I think my file upload example is a compelling one. I'm glad you were able to update your client. - -chris -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAkjuSnQACgkQ9CaO5/Lv0PBn5gCgjXyZMYnGtb0sA+Ljmh/cjj6t m9UAnR0z5us+dQjzSN1Bja8xGX6PGT5s =ge2Q -----END PGP SIGNATURE----- --------------------------------------------------------------------- To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org For additional commands, e-mail: users-help@tomcat.apache.org