Hi,

I recently placed into service a cluster of 4 Tomcat 4.1.18/JBoss 3.0.6
servers. Yesterday an unexpected problem came up though. A user using NS
4.76 with a corrupted cookie file sent a HUGE cookie into Tomcat. The
servicing Coyote thread choked on it with the following stack trace.

2003-02-12 14:12:19,480 ERROR [org.jboss.web.localhost.Engine] CoyoteAdapter
An exception or error occurred in the container during the request
processing
java.lang.IllegalArgumentException: Cookie name -servedby.advertising.com
TRUE    /       FALSE   1035140563      79642963   -10253 is a reserved
token
        at javax.servlet.http.Cookie.<init>(Cookie.java:185)
        at
org.apache.coyote.tomcat4.CoyoteAdapter.parseCookies(CoyoteAdapter.java:402)
        at
org.apache.coyote.tomcat4.CoyoteAdapter.postParseRequest(CoyoteAdapter.java:
306)
        at
org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:221)
        at
org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:261)
        at
org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:360)
        at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:632)
        at
org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:590)
        at
org.apache.jk.common.SocketConnection.runIt(ChannelSocket.java:707)
        at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav
a:530)
        at java.lang.Thread.run(Thread.java:536)


The problem that I noticed was that mod_JK refused to give up and kept
sending the request from node to node to node, killing Coyotes all long the
way. It circled for 2 hours AFTER I had already fire walled the user with
the problem. Finally I had to redirect traffic and reboot the servers to
clear the bad request. During the time the request was circling the cluster
remained up, but was a little sluggish.

Is there anyway to tell mod_JK 'Enough already, give up after X tries'?
Could this also be a problem with the Coyote connector in Tomcat? It
probably should not crash to begin with right?

Thanks for any help you can provide.

Dennis


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to