Return-Path: Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: (qmail 48869 invoked from network); 13 Oct 2008 11:11:23 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 13 Oct 2008 11:11:23 -0000 Received: (qmail 22699 invoked by uid 500); 13 Oct 2008 11:11:11 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 22670 invoked by uid 500); 13 Oct 2008 11:11:11 -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 22659 invoked by uid 99); 13 Oct 2008 11:11:11 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 13 Oct 2008 04:11:11 -0700 X-ASF-Spam-Status: No, hits=1.2 required=10.0 tests=SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [196.25.240.74] (HELO ctb-mesg4.saix.net) (196.25.240.74) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 13 Oct 2008 11:10:03 +0000 Received: from animal (dsl-243-101-224.telkomadsl.co.za [41.243.101.224]) by ctb-mesg4.saix.net (Postfix) with SMTP id 553C63721 for ; Mon, 13 Oct 2008 13:10:04 +0200 (SAST) Message-ID: <015301c92d24$5dda4cf0$0300000a@animal> From: "Johnny Kewl" To: "Tomcat Users List" References: <152805e90809050055t310c6badnb2beada3d355bc39@mail.gmail.com> <48C141AF.90908@apache.org> <152805e90810021850w766b35bdsb8504ee0783e9d89@mail.gmail.com> <152805e90810052316l7d8fb602ubad0c557dccf1893@mail.gmail.com> <48E9CEA8.3080301@apache.org> <152805e90810122211y50bf74f0g43eb96d5a1c3f8c8@mail.gmail.com> <009701c92d0e$79e3bcd0$0300000a@animal> <152805e90810130235r5ec58293nacd8546e80b007d7@mail.gmail.com> Subject: Re: question : encounter java.net.SocketTimeoutException: Read timed out occasionally Date: Mon, 13 Oct 2008 13:10:55 +0200 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=original Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2900.2180 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 X-Antivirus: avast! (VPS 080805-0, 2008/08/05), Outbound message X-Antivirus-Status: Clean X-Virus-Checked: Checked by ClamAV on apache.org ----- Original Message ----- From: "James Wang" To: "Tomcat Users List" Sent: Monday, October 13, 2008 11:35 AM Subject: Re: question : encounter java.net.SocketTimeoutException: Read timed out occasionally > Hi Johnny, > > Yes, We are using ajax to make the post requests, and the header do > include > content-length information that was calculated by ajax automatically, but > the > strange thing is sometime it get stuck at the begin of uploading http > body(0 > byte > was transfered always in this case) until AJP connector timeout, actually > we > have revised a little bit on tomcat source code, below is our finding we > made > the change on org.apache.catalina.connector.Request.java for your > reference > : > > protected void parseParameters() { > > : : : : > : : : : > > if (actualLen == len) { > parameters.processParameters(formData, 0, len); > } > else { // added by me > context.getLogger().error("formData Len error len :" + > len + " <> actualLen :" + actualLen); > } > } catch (Throwable t) { > context.getLogger().warn > (sm.getString("coyoteRequest.parseParameters"), t); > } > } > > } > > Following was the Tomcat log, actualLen always return 0, > the first line showing the content-length is 32 but the returned > actual length is 0. > > SEVERE: formData Len error len :32 <> actualLen :0 > SEVERE: formData Len error len :379 <> actualLen :0 > SEVERE: formData Len error len :32 <> actualLen :0 > SEVERE: formData Len error len :41 <> actualLen :0 > SEVERE: formData Len error len :60 <> actualLen :0 > SEVERE: formData Len error len :74 <> actualLen :0 > SEVERE: formData Len error len :145 <> actualLen :0 > SEVERE: formData Len error len :60 <> actualLen :0 > > Thanks & Best Regards. > James Wang > On Mon, Oct 13, 2008 at 4:34 PM, Johnny Kewl wrote: James... dont know... couple of thing you can do... get wire shark and actually watch whats on the wire... if the header is coming in and no body is sent, it aint tomcat... My Ajax is stale... if you doing it yourself, then its very like a javascript issue.... cant remember details but its not unusual in the Ajax stuff to see... ... if(IE) do it all different... ... I think you working on the wrong side... its that Ajax, is my guess.... My guess is that it works with Firefox perfectly... but not on IE and you dont have a debugger for that... welcome to Javascript ;) on diff browsers its a nightmare ;) Good luck, or maybe post the Ajax snippet and see if the guys can spot it... --------------------------------------------------------------------------- HARBOR : http://www.kewlstuff.co.za/index.htm The most powerful application server on earth. The only real POJO Application Server. See it in Action : http://www.kewlstuff.co.za/cd_tut_swf/whatisejb1.htm --------------------------------------------------------------------------- If you cant pay in gold... get lost... --------------------------------------------------------------------- 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