Re: Does sleep increase server load?
- From: Jason Carlton <jwcarlton@xxxxxxxxx>
- Date: Thu, 19 Jun 2008 13:48:14 -0700 (PDT)
On Jun 19, 4:26 pm, Ted Zlatanov <t...@xxxxxxxxxxxx> wrote:
On Thu, 19 Jun 2008 12:47:06 -0700 (PDT) Jason Carlton <jwcarl...@xxxxxxxxx> wrote:
JC> I'm pretty sure that this is a basic question, but I simply don't know
JC> the answer. Does the sleep command increase the server load at all
JC> while running?
No, it just puts the calling process to sleep.
JC> The reason I ask, I have a contact form that spam robots typically try
JC> to use to send junk. I have some very basic filters in place that
JC> catch 99.9% of it, which is great, but the robots still waste my
JC> server resources in trying to utilize it.
sleep() would be the wrong way to handle that, because the connections
will still be coming while you're idle. Better to handle them as soon
as possible. Even better, provide just a mailing address and no contact
form if possible.
Ted
Ahh, good points, from both of you. I do prefer to create my own
processes, mainly for the fun of it, so I might set up a catcha-type
process, instead.
I dread that, though, because some of my site visitors are (please
forgive me) about as dumb as a box of hammers! LOL For instance, I
have a significant portion that don't bother to enter the part of
their email address after the @; they just ASSUME that I would know
who their provider is!
People have taught me a whole new meaning to "keep it at a 3rd grade
level" :-)
.
- Follow-Ups:
- Re: Does sleep increase server load?
- From: Ted Zlatanov
- Re: Does sleep increase server load?
- References:
- Does sleep increase server load?
- From: Jason Carlton
- Re: Does sleep increase server load?
- From: Ted Zlatanov
- Does sleep increase server load?
- Prev by Date: Re: calling external program tiff2pdf
- Next by Date: Re: Does sleep increase server load?
- Previous by thread: Re: Does sleep increase server load?
- Next by thread: Re: Does sleep increase server load?
- Index(es):
Relevant Pages
|