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

Re: Sleep - settle an argument?

by FloydATC (Chaplain)
on Sep 20, 2012 at 13:09 UTC ( #994659=note: print w/ replies, xml ) Need Help??


in reply to Sleep - settle an argument?

IIRC, most browsers of old would not start rendering the document until it had been fully transmitted from the server and the connection closed, so a sleep() in a CGI would just make the connection appear to "hang" while unnecessarily eating up resources on the web server.

From the Perl perspective, the default sleep() can only do integer seconds while Time::HiRes lets you use fractions. Other than that, nothing has changed AFAIK.

-- Time flies when you don't know what you're doing


Comment on Re: Sleep - settle an argument?
Download Code
Re^2: Sleep - settle an argument?
by ultranerds (Pilgrim) on Sep 20, 2012 at 13:19 UTC
    >>IIRC, most browsers of old would not start rendering the document until it had been fully transmitted from the server and the connection closed, so a sleep() in a CGI would just make the connection appear to "hang" while unnecessarily eating up resources on the web server. <<<

    Thanks, that was what I was thinking of - although I could swear than when I used it in a browser run script in my very early years, it simply ignored the sleep and run as normal - but my memory isn't as good as it used to be! (not good for a 28 year old to be saying ;))

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (14)
As of 2014-11-24 16:20 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My preferred Perl binaries come from:














    Results (143 votes), past polls