Hi,
Just got an exception on a slow servlet and probably hit stop on the right
moment, because it didn't happen anymore after that, so this one is easy to
mis..
(sorry I cannot copy and paste so bear with me..)
Ajp13Interceptor: Processing connection
org.apache.tomcat.util.net.TcpConnection - java.net.SocketException:
Connection reset by peer (maby this must be Pier?)
java.net.SocketInputStream.socketRead (native method)
java.net.SocketInputStream.read (86)
org.apache.tomcat.modules.server.Ajp13.receive(Ajp13.java:647)
org.apache.tomcat.modules.server.Ajp13.receiveNextRequest(Ajp13.java:241)
org.apache.tomcat.modules.server.Ajp13Request.receiveNextRequest(Ajp13Interc
eptor.java:218)
org.apache.tomcat.modules.server.Ajp13Interceptor.processConnection(Ajp13Int
erceptor.java:153)
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:438)
<snap> (horrible to manually type this).
The exception doesn't end up in a log file and only goes to the console and
the exception is correct ;)). Maby catching and logging it would look a bit
better, so for that reason (cannot test btw, since I cannot reproduce it
anymore, ehh after 15 minutes of stopping request I gave up..) I added a
little bit of catching and tried to add logging, but the log("blah") didn't
compile anymore..
Also I don't know if this change fuckes up the rest and must be caught at
the Interceptor..
Hope this is usefull, if not : I've tried ;))
Mvgr,
Martin
Index: Ajp13.java
===================================================================
RCS file:
/home/cvspublic/jakarta-tomcat/src/share/org/apache/tomcat/modules/server/Ajp13.java,v
retrieving revision 1.21
diff -r1.21 Ajp13.java
647c647,653
< int rd = in.read( b, 0, H_SIZE );
---
> int rd = 0;
> try {
> rd = in.read( b, 0, H_SIZE );
> }catch(java.net.SocketException se) {
> //XXX log("client-side terminated request");
> }
>