Re: How to make a httpd daemon serve everything with a settable delay

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 9/3/07, Vincent Bray <noodlet@xxxxxxxxx> wrote:
> On 03/09/07, Krist van Besien <krist.vanbesien@xxxxxxxxx> wrote:
> > In the second test case the server only returns the content after a
> > settable delay. In this case the webserver is supposed to keep the
> > connection open, but only return a page after for example 20 seconds.
>
> That's an interesting question. I guess you could use RewriteMap prg:
> and write a script that sleep()s for the desired period. That way
> you'd have flexibility in deciding when to use it too.

Yes, there are lots of places you can insert a delay. Perhaps one of
the easiest would be mod_ext_filter. There is an example there of
using "cat" to add overhead to a connection. You could easily add a
"sleep" with the cat.

Joshua.

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx


[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux