Skip to content
Browse files

add banner print

  • Loading branch information...
1 parent e0655a6 commit de12623c467c844e1e2dbe7e5b612712f1395b90 @typester committed with miyagawa
Showing with 11 additions and 0 deletions.
  1. +11 −0 lib/Plack/Server/Danga/Socket.pm
View
11 lib/Plack/Server/Danga/Socket.pm
@@ -96,6 +96,17 @@ sub run {
if ($HasAIO) {
Danga::Socket->AddOtherFds(IO::AIO::poll_fileno() => \&IO::AIO::poll_cb);
}
+ Danga::Socket->AddTimer(
+ 0,
+ sub {
+ my $poll
+ = $Danga::Socket::HaveKQueue ? 'kqueue'
+ : $Danga::Socket::HaveEpoll ? 'epoll'
+ : 'poll';
+ warn
+ "Accepting requests at http://$self->{host}:$self->{port}/ (with $poll)";
+ }
+ );
Danga::Socket->EventLoop;
}

0 comments on commit de12623

Please sign in to comment.
Something went wrong with that request. Please try again.