Re: Does sleep increase server load?



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" :-)
.



Relevant Pages

  • Re: Does sleep increase server load?
    ... JC> I'm pretty sure that this is a basic question, ... Does the sleep command increase the server load at all ... it just puts the calling process to sleep. ... I have a contact form that spam robots typically try ...
    (comp.lang.perl.misc)
  • Does sleep increase server load?
    ... I'm pretty sure that this is a basic question, ... Does the sleep command increase the server load at all ...
    (comp.lang.perl.misc)
  • WinCE 6 Power Management - noob question
    ... Hello - I'm a new WinCE 6 user and I have a basic question you experts should ... image built with Platform Builder. ... I want to be able to put my device to sleep by calling an API and then I ... Wake up in an hour, do some work, and go back to ...
    (microsoft.public.windowsce.embedded)
  • Re: Does sleep increase server load?
    ... Does the sleep command increase the server load at all ... I have a contact form that spam robots typically try ...
    (comp.lang.perl.misc)
  • Re: Rationale for CS0536?
    ... this seems to be a cumbersome way to accomplish that behaviour. ... to come back to the basic question - why did they make it the way ... current thread to sleep since Sleep is a static method. ... By not allowing statics to be ...
    (microsoft.public.dotnet.languages.csharp)