PDA

View Full Version : debugging 30 second request delay


maritimesource
06-22-2006, 08:11 PM
Hi,

I've developed an application that does a bit of data exchange with a php backend. There's a login function, and a Create Profile wizard.

The problem is, after the app loads for the first time, and the first form of the Create Profile is sent to the server it takes 30 seconds for it to complete.

After this first occurance, I can go back and do the same operation and it's nice and zippy.

The weird part is, if after loading the app I try to login, it also takes a really long time, but then the Create Profile form experiences no delays. This behaviour works both ways...

So it seems no matter where in the app the server request takes place, the very first one hangs for 30 seconds.

I have determined that the submitter immediately goes into the status of "requesting" (as expected), but I know from the php backend logging that it doesn't reach the backend at all until the long delay is reached.

Another clue is, the first time the form loads, these errors are displayed in the debugger:

WARNING: lz/form.lzx:45: reference to undefined variable 'buttonplace'
WARNING: lz/form.lzx:45: undefined object does not have a property 'height'
WARNING: lz/form.lzx:45: reference to undefined property 'height'

How do I go about debugging this sort of issue? What does the laszlo debugger offer to help me with this?

THANKS!

mhayden
09-21-2006, 02:06 PM
I also get the same warnings:

WARNING: lz/form.lzx:45: reference to undefined variable 'buttonplace'
WARNING: lz/form.lzx:45: undefined object does not have a property 'height'
WARNING: lz/form.lzx:45: reference to undefined property 'height'

This happens only the first time I close a form in my application. The form is enclose in a window and a state and is removed by the State.remove() method. The form is using the <formlayout> layout.

Any clues on how to remove these would be appreciated!