The op suggested the payload was getting lost because the connection closed prematurely, but the post request continued to be processed without the request parameters. He also mentions a connection timeout being set too low in his connector settings. I figured this could be the case for us, but with the keepalivetimeout as the culprit, seeing how I recently lowered this.
At 10s it's almost like a constant flood of exceptions generated by our application (because of missing parameters). (mind the application has 1500+ concurrent users, but it's easy to notice on as low as 50) I can reproduce it on demand with our application, but I wouldn't know how to create a post request that would stall, the servlet can stall the response, but isn't processing of the request (i.e. fetching post parameters) done by tomcat? You might be able to reproduce it as follows: - Create a http connector with a keepalive timeout of 5s. (apr w/ 10s in our case, but it happens with NIO as well. Check previous post for our connector definition) - Have an ajax app do post requests to servlet A that logs the post parameters. (javascript/ajax in our case, check previous post for our http header info) - See if any post parameters come up empty at servlet A. Note that I almost certainly think this only happens w/ clients that use IE 6/7. I'd like to help, so let me know if there's anything else I can do. -----Original Message----- From: Christopher Schultz [mailto:ch...@christopherschultz.net] Sent: dinsdag 3 maart 2009 18:53 To: Tomcat Users List Subject: Re: tomcat w/apr data lost in http post request? -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Taylan, On 3/3/2009 12:11 PM, Taylan Develioglu wrote: > Thanks for the thoughts Chris, but I found the cause. > > I had lowered the the keepalivetimeout setting to 10s because our > application polls in 2.5s intervals, pretty unexpected result (I figured > 10s should be enough). > > I think the connection gets closed somewhere in the middle of the post > request but the request is still accepted as complete. The post > parameters are never received and/or processed. That seems like a bug to me. Can you reproduce it on demand? Probably using a super short timeout (5 seconds) and a POST request that artificially "stalls" during the POST. The message you referenced is about AJP, while you are using APR. Are you just saying that this message got you thinking about keepalives? - -chris -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAkmtbn8ACgkQ9CaO5/Lv0PBtiwCdECtrPlS/VUvRL36Bv0WxeVFM sWsAoK7LSceL3+/We0NC3oI6N162Hba3 =bYl2 -----END PGP SIGNATURE----- --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org