File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change 1
1
Revision history for Mojo-IOLoop-ReadWriteFork
2
2
3
+ 0.0601
4
+ * Trying to fix t/telnet.t with 127.0.0.1
5
+
3
6
0.06 Mon Aug 11 16:59:18 2014
4
7
* Fix "Use of uninitialized value in numeric eq (==) at ReadWriteFork.pm line 182."
5
8
* Add support for write() before child process has started
Original file line number Diff line number Diff line change @@ -7,10 +7,11 @@ use Test::Memory::Cycle;
7
7
$ENV {PATH } ||= ' ' ;
8
8
plan skip_all => ' telnet is missing' unless grep { -x " $_ /telnet" } split /:/, $ENV {PATH };
9
9
10
+ my $address = ' 127.0.0.1' ;
10
11
my $port = Mojo::IOLoop::Server-> generate_port;
11
12
12
13
# echo server
13
- Mojo::IOLoop-> server({ port => $port }, sub {
14
+ Mojo::IOLoop-> server({ address => $address , port => $port }, sub {
14
15
my ($ioloop , $stream ) = @_ ;
15
16
$stream -> on(read => sub { $_ [0]-> write (" I heard you say: $_ [1]" ); });
16
17
});
@@ -30,7 +31,7 @@ Mojo::IOLoop->server({ port => $port }, sub {
30
31
31
32
$run -> start(
32
33
program => ' telnet' ,
33
- program_args => [localhost => $port ],
34
+ program_args => [$address => $port ],
34
35
conduit => ' pty' ,
35
36
);
36
37
You can’t perform that action at this time.
0 commit comments