From: Jeff S. <hea...@ya...> - 2004-10-14 01:00:07
|
Hi, I have seen some similar behaviour when I open multiple forms in a browser and that have the session ID stored in a cookie. I modified my application not to use cookies to store the session ID but instead stored the session ID in the form data and everything worked as expected. If you're using self checking forms you need to append the session ID to Doc_Redirect so the next form in the chain knows the session ID details. Kind Regards Jeff Smith --- George Harvey <fr...@di...> wrote: > Hi, > > I'm conducting some stress testing of an > application, built on threaded > tclhttpd, and I'm seeing some intermittent failures > which appear to be > related to the handling of form and cookie data > returned to the server. > I'm still trying to narrow down the problem but I'd > like to describe the > symptoms to see if anyone else has seen (or even > fixed!) anything > similar. > > The application is written in Tcl, loaded from the > custom directory and > accessed as an Application Direct URL. To test it, I > have written a > script (using tclwebtest) which will select all the > menus, fill in > forms, follow links etc. To stress test it, I run > multiple copies of the > test script on different machines. > > What I'm seeing is that a single test script runs OK > but multiple copies > will eventually fail. The failure occurs when a > script does not get back > the page it expects and can happen anytime from a > few minutes to a > couple of hours into the test. I'm using a session > ID number, stored in > a cookie, to keep track of session state and when a > failure occurs the > server log shows a mis-match between the session ID > and the expected > query data. What appears to be happening is that the > query data for one > session is somehow getting passed to a different > session. > > The intermittent nature of the failures suggest that > they are timing > dependent, most likely needing a second request to > arrive within some > critical time window during processing of the first > request. I've been > looking at the tclhttpd code and can see that all > the header and query > data is held in a per-socket array in the master > thread before being > copied to the worker thread so it is difficult to > see how it could get > mixed up. I'm still trying to narrow this down. > > Anyone seen anything like this? > > For reference, I'm running Tcl 8.4.7, tclhttpd > 3.5.1, tcllib 1.6.1 and > thread 2.5.2. Tclhttpd is configured to run 5 > threads and I have checked > that worker threads are being created as expected. > The server platform > is Slackware 9.1. > > Regards, > George > > > ------------------------------------------------------- > This SF.net email is sponsored by: IT Product Guide > on ITManagersJournal > Use IT products in your business? Tell us what you > think of them. Give us > Your Opinions, Get Free ThinkGeek Gift Certificates! > Click to find out more > http://productguide.itmanagersjournal.com/guidepromo.tmpl > _______________________________________________ > TclHttpd-users mailing list > Tcl...@li... > https://lists.sourceforge.net/lists/listinfo/tclhttpd-users > _______________________________ Do you Yahoo!? Express yourself with Y! Messenger! Free. Download now. http://messenger.yahoo.com |