tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject RE: request.getReader() hanging
Date Wed, 05 Jun 2002 16:30:42 GMT
i've tried sending modifying the data sent, but the behaviour stays the
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());
	String header = (String)enum.nextElement();
	System.out.println("RequestHeader: "+ 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 []
Sent: 05 June 2002 17:01
To: 'Tomcat Users List'
Cc: ''
Subject: RE: request.getReader() hanging

The problem is that apj13 does not serve servlets and JSP pages correct
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

Ajp13Processor[25181][0] process: invoke Broken pipe
        at Method)
        at org.apache.ajp.Ajp13.send(
        at org.apache.ajp.RequestHandler.finish(
        at org.apache.ajp.Ajp13.finish(

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?


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

This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses.

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message