tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Fletcher Cocquyt <fcocq...@stanford.edu>
Subject Re: socket is not connected any more (errno=11)
Date Wed, 14 Feb 2007 18:31:41 GMT
Mladen Turk <mladen.turk <at> gmail.com> writes:

> 
> Fletcher Cocquyt wrote:
> > We have a problem with lost submissions in a loadbalanced (mod_jk) webapp and
> > think these errors are related - what causes error number 11 and what can be
> > done about it?
> > 
> 
> This is correct behavior if Tomcat closes the connection (for example
> you restart Tomcat or you have connectionTimeout for AJP connector).
> The 4 info messages simply state that mod_jk:
> 1. Detects the existing connection is not connected any more
> 2. It will try another free socket in the connection pool
> 3. None valid free sockets has been found
> 4. Reconnect to Tomcat
> 
> If you wish to get rid of those lines increase JkLogLevel to error
> 
> Regards,
> Mladen.
> 

But say we have a survey webapp (users fill in a form) and the following
scenario occurs:
1) user goes to /survey/favoritemusic/ that sets a cookie upon new user landing
on the webpage 
2) the user starts filling out the form
3) tomcat connection expires/ends 
4) mod_jk connects to new loadbalanced worker on a different app server
5) user finishes survey and clicks SUBMIT
6) survey code checks the session cookie and finds it missing due to 3,4 above
7) survey code chucks the users responses as suspected spam (false positive)

How do we prevent #7 ?
Can we manage this with mod_jk settings?
(mod_jk 1.2.19
worker.tomcat-intranet-02.retries=2
worker.tomcat-intranet-02.socket_timeout=2
worker.tomcat-intranet-02.connect_timeout=2000
worker.tomcat-intranet-02.prepost_timeout=5000
worker.tomcat-intranet-02.reply_timeout=300000
)

Many Thanks!





---------------------------------------------------------------------
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


Mime
View raw message