Skip to content

Commit

Permalink
removed undocumented and untested args attribute from Mojo::IOLoop::C…
Browse files Browse the repository at this point in the history
…lient and Mojo::IOLoop::Server
  • Loading branch information
kraih committed Dec 19, 2011
1 parent ef87a2d commit c3b53bd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions lib/Mojo/IOLoop/Client.pm
Expand Up @@ -58,8 +58,7 @@ sub _connect {
Blocking => 0,
PeerAddr => $args->{address},
PeerPort => $args->{port} || ($args->{tls} ? 443 : 80),
Proto => 'tcp',
%{$args->{args} || {}}
Proto => 'tcp'
);
$options{PeerAddr} =~ s/[\[\]]//g if $options{PeerAddr};
my $class = IPV6 ? 'IO::Socket::IP' : 'IO::Socket::INET';
Expand Down
3 changes: 1 addition & 2 deletions lib/Mojo/IOLoop/Server.pm
Expand Up @@ -117,8 +117,7 @@ sub listen {
LocalPort => $port,
Proto => 'tcp',
ReuseAddr => 1,
Type => SOCK_STREAM,
%{$args->{args} || {}}
Type => SOCK_STREAM
);
$options{LocalAddr} =~ s/[\[\]]//g;
$handle = $class->new(%options)
Expand Down

0 comments on commit c3b53bd

Please sign in to comment.