Skip to content

Commit

Permalink
ipv6 cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Sep 23, 2010
1 parent 84f7596 commit a0922b4
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions lib/Mojo/IOLoop.pm
Expand Up @@ -30,7 +30,7 @@ use constant EPOLL_POLLOUT => EPOLL ? IO::Epoll::POLLOUT() : 0;
# IPv6 support requires IO::Socket::IP
use constant IPV6 => $ENV{MOJO_NO_IPV6}
? 0
: eval 'use IO::Socket::IP 0.03 (); 1';
: eval 'use IO::Socket::IP 0.04 (); 1';

# KQueue support requires IO::KQueue
use constant KQUEUE => ($ENV{MOJO_POLL} || $ENV{MOJO_EPOLL})
Expand Down Expand Up @@ -616,10 +616,6 @@ sub _accept {
# Accept
my $socket = $listen->accept or return;

# Workaround for an IO::Socket bug (required for IO::Socket::IP)
no strict 'refs';
${*$socket}{'io_socket_type'} = ${*$listen}{'io_socket_type'};

# Unlock
$self->unlock_cb->($self);

Expand Down

0 comments on commit a0922b4

Please sign in to comment.