preliminary support for io-asyn
John Napiorkowski [Fri, 18 Oct 2013 19:15:13 +0000 (14:15 -0500)]
lib/Catalyst/Request.pm

index 5de7635..7c1ae96 100644 (file)
@@ -103,6 +103,9 @@ has io_fh => (
 sub _build_io_fh {
     my $self = shift;
     return $self->env->{'psgix.io'}
+      || (
+        $self->env->{'net.async.http.server.req'} &&
+        $self->env->{'net.async.http.server.req'}->stream)   ## Until I can make ioasync cabal see the value of supportin psgix.io (jnap)
       || die "Your Server does not support psgix.io";
 };