Permalink
Browse files

added PLACK_NO_SENDFILE support to Danga::Socket and Coro

  • Loading branch information...
1 parent 8d0800c commit 64d2318a7d4f8e20ea29b19bd09991cfa44a5794 @miyagawa miyagawa committed Sep 29, 2009
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/Plack/Server/Danga/Socket.pm
@@ -12,7 +12,7 @@ use IO::Socket::INET;
use HTTP::Status;
use Socket qw/IPPROTO_TCP TCP_NODELAY/;
-our $HasAIO = eval {
+our $HasAIO = !$ENV{PLACK_NO_SENDFILE} && eval {
require IO::AIO; 1;
};

0 comments on commit 64d2318

Please sign in to comment.