Re: Does sleep increase server load?
- From: Ted Zlatanov <tzz@xxxxxxxxxxxx>
- Date: Thu, 19 Jun 2008 15:26:36 -0500
On Thu, 19 Jun 2008 12:47:06 -0700 (PDT) Jason Carlton <jwcarlton@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
.
- Follow-Ups:
- Re: Does sleep increase server load?
- From: Jason Carlton
- Re: Does sleep increase server load?
- References:
- Does sleep increase server load?
- From: Jason Carlton
- Does sleep increase server load?
- Prev by Date: I need help running DBI
- Next by Date: Re: calling external program tiff2pdf
- Previous by thread: Re: Does sleep increase server load?
- Next by thread: Re: Does sleep increase server load?
- Index(es):
Relevant Pages
|