Skip to content
Browse files

support --port option on echo-coro.pl

  • Loading branch information...
1 parent 15f1f86 commit 8822a3356c8540f6bf8e1e2f6e6c443ee6d6e7b7 @tokuhirom committed Sep 23, 2009
Showing with 2 additions and 1 deletion.
  1. +2 −1 echo-coro.pl
View
3 echo-coro.pl
@@ -9,9 +9,10 @@
my $port = 9010;
GetOptions(
'concurrent=s' => \$concurrent,
+ 'port=i' => \$port,
);
-print "coro: http://localhost:9010/\n";
+print "coro: http://localhost:$port/\n";
print "concurrency: $concurrent\n";
my $sock = Coro::Socket->new(LocalHost => 'localhost', LocalPort => $port, Listen => 10, ReuseAddr => 1);
my @coros;

0 comments on commit 8822a33

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