Re: Does sleep increase server load?



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
.



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)