Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: CGI hangs unless print

by GrandFather (Saint)
on May 23, 2017 at 02:39 UTC ( [id://1190923]=note: print w/replies, xml ) Need Help??


in reply to CGI hangs unless print

What roboticus said. CGI applications, as I'm sure you must know, work by writing their output to stdout. If your application spends a long time thinking without generating any traffic on stdout something is bound to give up with the result that at the browser end nothing seems to happen.

Also as roboticus said, if you don't show us some code we can't help a lot. Pare down your code to just the problematic loop. If you need data, fake it. If the database takes a long time in the real code put a delay in the sample where the database code would be called. You should be able to reproduce a sketch of the code in a few dozen runable lines of code.

Most likely you can restructure your code to remove most of the database overhead, but we can't tell without seeing at least a sketch.

Premature optimization is the root of all job security

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1190923]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others meditating upon the Monastery: (7)
As of 2024-04-25 08:29 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found