Return-Path: Delivered-To: apmail-jakarta-tomcat-user-archive@apache.org Received: (qmail 99393 invoked from network); 5 Jun 2002 16:31:23 -0000 Received: from unknown (HELO nagoya.betaversion.org) (192.18.49.131) by daedalus.apache.org with SMTP; 5 Jun 2002 16:31:23 -0000 Received: (qmail 22826 invoked by uid 97); 5 Jun 2002 16:31:07 -0000 Delivered-To: qmlist-jakarta-archive-tomcat-user@jakarta.apache.org Received: (qmail 22778 invoked by uid 97); 5 Jun 2002 16:31:06 -0000 Mailing-List: contact tomcat-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Tomcat Users List" Reply-To: "Tomcat Users List" Delivered-To: mailing list tomcat-user@jakarta.apache.org Received: (qmail 22766 invoked by uid 98); 5 Jun 2002 16:31:06 -0000 X-Antivirus: nagoya (v4198 created Apr 24 2002) Message-ID: From: chris.karema@omiris.net To: tomcat-user@jakarta.apache.org Subject: RE: request.getReader() hanging Date: Wed, 5 Jun 2002 17:30:42 +0100 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: multipart/alternative ; boundary="----_=_NextPart_001_01C20CAE.55C45C10" X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N ------_=_NextPart_001_01C20CAE.55C45C10 Content-Type: text/plain; charset="iso-8859-1" i've tried sending modifying the data sent, but the behaviour stays the same, it does seem to send the request headers through, but only as demonstrated by including the following snippet before calling request.getReader() ========================================== Enumeration enum = request.getHeaderNames(); System.out.println("Content-Length = "+request.getContentLength()); while(enum.hasMoreElements()){ String header = (String)enum.nextElement(); System.out.println("RequestHeader: "+ header+" = "+request.getHeader(header)); } ================================================ That prints out all the headers, but as soon as it gets to the reader.readLine(), it just hangs Using solaris 7 btw ps - catalina.out shows the following info when ajp13 responds alright ======================================================= [Ajp13] receive: total read = 230 [Ajp13] Received 2 JK_AJP13_FORWARD_REQUEST [Ajp13] receive() [Ajp13] receive: total read = 6 [Ajp13] send() [Ajp13] send() [Ajp13] send() [Ajp13] recycle() [Ajp13] receiveNextRequest() [Ajp13] receive() ========================================================================= but when it hangs it only shows this =================================================================== [Ajp13] receive: total read = 278 [Ajp13] Received 2 JK_AJP13_FORWARD_REQUEST [Ajp13] receive() [Ajp13] receive: total read = 6 [Ajp13] send() [Ajp13] receive() ============================================================================ ==== -----Original Message----- From: Rossen Raykov [mailto:Rossen.Raykov@CognicaseUSA.com] Sent: 05 June 2002 17:01 To: 'Tomcat Users List' Cc: 'tomcat-developer@jakarta.apache.org' Subject: RE: request.getReader() hanging The problem is that apj13 does not serve servlets and JSP pages correct also. It hangs making useless communications with mod_jk and uses all the available CPU power. If I kill the corresponding http daemon the following error appears in the log: Ajp13Processor[25181][0] process: invoke java.io.IOException: Broken pipe at java.net.SocketOutputStream.socketWrite(Native Method) at java.net.SocketOutputStream.write(SocketOutputStream.java:83) at org.apache.ajp.Ajp13.send(Ajp13.java:525) at org.apache.ajp.RequestHandler.finish(RequestHandler.java:496) at org.apache.ajp.Ajp13.finish(Ajp13.java:395) at org.apache.ajp.tomcat4.Ajp13Response.finishResponse(Ajp13Response.java:192) at org.apache.ajp.tomcat4.Ajp13Processor.process(Ajp13Processor.java:435) at org.apache.ajp.tomcat4.Ajp13Processor.run(Ajp13Processor.java:495) at java.lang.Thread.run(Thread.java:484) That makes me think that the request header processing is braking if specific data is send (in jakarta-tomcat-connectors-4.0.2-01-src\jk\doc\AJPv13.html there is interesting question at the bottom of the document and it may be the key for this problem). Most probably you have the same problem. I'm about to debug it but unfortunately I can not reproduce it on my system. Is the problem that you are talking about related to any specific data? Shall the data in the quoted example be sufficient to hang the Connector? BW what OS you are using? Regards, Rossen ********************************************************************** This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify postmaster@omiris.net. This footnote also confirms that this email message has been swept by MIMEsweeper for the presence of computer viruses. ********************************************************************** ------_=_NextPart_001_01C20CAE.55C45C10--