Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

remove run_loop from Server implementations. Use register_service if …

…you don't want main event loop run
  • Loading branch information...
commit 19c5e5efa3d609372ef6d2738af12019f88f95bb 1 parent 055447e
Tatsuhiko Miyagawa miyagawa authored

Showing 1 changed file with 4 additions and 2 deletions. Show diff stats Hide diff stats

  1. +4 2 lib/Plack/Server/Danga/Socket.pm
6 lib/Plack/Server/Danga/Socket.pm
@@ -41,7 +41,7 @@ sub new {
41 41 $self;
42 42 }
43 43
44   -sub run {
  44 +sub register_service {
45 45 my ($self, $app) = @_;
46 46
47 47 my $ssock = IO::Socket::INET->new(
@@ -90,7 +90,9 @@ sub run {
90 90 });
91 91 }
92 92
93   -sub run_loop {
  93 +sub run {
  94 + my $self = shift;
  95 + $self->register_service(@_);
94 96 if ($HasAIO) {
95 97 Danga::Socket->AddOtherFds(IO::AIO::poll_fileno() => \&IO::AIO::poll_cb);
96 98 }

0 comments on commit 19c5e5e

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