diff -Nuar POE-Component-Server-HTTP-0.09/lib/POE/Component/Server/HTTP/Response.pm POE-Component-Server-HTTP-0.09-delay/lib/POE/Component/Server/HTTP/Response.pm
--- POE-Component-Server-HTTP-0.09/lib/POE/Component/Server/HTTP/Response.pm 2006-05-23 15:10:35.000000000 -0500
+++ POE-Component-Server-HTTP-0.09-delay/lib/POE/Component/Server/HTTP/Response.pm 2009-07-09 11:13:33.000000000 -0500
@@ -44,6 +44,13 @@
'execute' => $self->{connection}->{my_id});
}
+sub continue_delayed {
+ my ($self, $delay) = @_;
+ $delay = 0.5 unless $delay;
+ $poe_kernel->post($self->{connection}->{session},
+ 'execute_delayed' => $self->{connection}->{my_id}, $delay);
+}
+
sub close {
my $self = shift;
$self->{streaming} = 0;
diff -Nuar POE-Component-Server-HTTP-0.09/lib/POE/Component/Server/HTTP.pm POE-Component-Server-HTTP-0.09-delay/lib/POE/Component/Server/HTTP.pm
--- POE-Component-Server-HTTP-0.09/lib/POE/Component/Server/HTTP.pm 2006-05-23 15:45:07.000000000 -0500
+++ POE-Component-Server-HTTP-0.09-delay/lib/POE/Component/Server/HTTP.pm 2009-07-09 11:14:00.000000000 -0500
@@ -93,6 +93,9 @@
accept => \&accept,
input => \&input,
execute => \&execute,
+ execute_delayed => sub {
+ $_[KERNEL]->delay_add('execute', $_[ARG1] || 0.5, $_[ARG0]);
+ },
error => \&error,
shutdown => sub {
my ($kernel, $session, $heap) = @_[KERNEL, SESSION, HEAP];