Skip to content

Commit

Permalink
fixed typo in port range
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Mar 16, 2012
1 parent c679baa commit 26d6096
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 0 additions & 2 deletions lib/Mojo/IOLoop.pm
Expand Up @@ -79,11 +79,9 @@ sub client {
sub delay {
my ($self, $cb) = @_;
$self = $self->singleton unless ref $self;

my $delay = Mojo::IOLoop::Delay->new;
weaken $delay->ioloop($self)->{ioloop};
$delay->once(finish => $cb) if $cb;

return $delay;
}

Expand Down
2 changes: 1 addition & 1 deletion lib/Mojo/IOLoop/Server.pm
Expand Up @@ -147,7 +147,7 @@ sub listen {
sub generate_port {

# Try private ports
for my $port ((49152 + int(rand 10000)) .. 655535) {
for my $port ((49152 + int(rand 15000)) .. 65535) {
IO::Socket::INET->new(
Listen => 5,
LocalAddr => '127.0.0.1',
Expand Down

0 comments on commit 26d6096

Please sign in to comment.