From: George H. <fr...@di...> - 2004-10-18 13:17:05
|
On Sun, 24 Oct 2004 01:17:56 -0400 Angel Sosa <xt...@am...> wrote: > tcl...@li... wrote: > > > > >Today's Topics: > > > > 1. Problem with form data in threaded tclhttpd (George Harvey) > > > >--__--__-- > > > >Message: 1 > >Date: Tue, 12 Oct 2004 21:01:04 +0100 > >From: George Harvey <fr...@di...> > >To: tcl...@li... > >Subject: [Tclhttpd-users] Problem with form data in threaded tclhttpd > > > >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. > > [ snip ] > > > 1. What OS are you running the web server on? > > 2. If possible please take some small packet traces. > > 3. You may want to try and place some delays with in your code. > Increase the delays untiil your custom code works correctly. This step > is just a way of seeing how much of a delay needs to be introduced. > The results can then be used for adjusting tclhttpd code if necessary. I did resort to packet traces at one point in my investigation but the problem turned out to be cookie data getting over-written on the server when two requests arrived close together. I have replaced a call to 'ncgi::cookie' with one to 'Cookie_GetSock' and haven't seen any more mis-matches between my cookie and form data. Regards, George |