ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/AnyEvent-MP/MP/Node.pm
(Generate patch)

Comparing AnyEvent-MP/MP/Node.pm (file contents):
Revision 1.68 by root, Sun Aug 28 09:39:23 2016 UTC vs.
Revision 1.69 by root, Sun Aug 28 14:49:44 2016 UTC

172 172
173 my @endpoints = reverse @$addresses; 173 my @endpoints = reverse @$addresses;
174 174
175 $self->{connect_w} = AE::timer 0, $interval * (0.9 + 0.1 * rand), sub { 175 $self->{connect_w} = AE::timer 0, $interval * (0.9 + 0.1 * rand), sub {
176 my $endpoint = pop @endpoints 176 my $endpoint = pop @endpoints
177 or return $self->transport_error (transport_error => $self->{id}, "unable to connect to any address"); 177 or return;
178 178
179 AE::log 9 => "connecting to $self->{id} at $endpoint"; 179 AE::log 9 => "connecting to $self->{id} at $endpoint";
180 180
181 $self->{trial}{$endpoint} ||= do { 181 $self->{trial}{$endpoint} ||= do {
182 my ($host, $port) = AnyEvent::Socket::parse_hostport $endpoint 182 my ($host, $port) = AnyEvent::Socket::parse_hostport $endpoint

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines