Skip to content

Instantly share code, notes, and snippets.

@olegwtf

olegwtf/t.pl Secret

Created September 15, 2015 18:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save olegwtf/fc9603339103cea74735 to your computer and use it in GitHub Desktop.
Save olegwtf/fc9603339103cea74735 to your computer and use it in GitHub Desktop.
if ($handle->isa('IO::Socket::IP')) {
my $res = $handle->connect;
return $! == EINPROGRESS ?
($self->reactor->remove($handle), $self->_wait($handle, $args)) :
$self->emit(error => $!)
unless $res;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment