Skip to content

Commit

Permalink
[rt.cpan.org 77601] Switch to Socket's getaddrinfo().
Browse files Browse the repository at this point in the history
AVENJ reported that Socket::GetSockAddr's :newapi was deprecated.
Switch to Socket for a more future-proof API.
  • Loading branch information
rcaputo committed Jun 3, 2012
1 parent eacdcf9 commit 7628a0a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion dist.ini
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ HTTP::Status = 5.811
Net::HTTP::Methods = 5.812
POE = 1.312
POE::Component::Client::Keepalive = 0.271
Socket::GetAddrInfo = 0.19
Socket = 2.001
Test::More = 0.96
Test::POE::Server::TCP = 1.14
URI = 1.37
Expand Down
7 changes: 4 additions & 3 deletions lib/POE/Component/Client/HTTP.pm
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,10 @@ use constant DEBUG_DATA => 0;
use Carp qw(croak);
use HTTP::Response;
use Net::HTTP::Methods;
use Socket qw(sockaddr_in inet_ntoa);
use Socket qw(
sockaddr_in inet_ntoa
getnameinfo NI_NUMERICHOST NI_NUMERICSERV
);

use POE::Component::Client::HTTP::RequestFactory;
use POE::Component::Client::HTTP::Request qw(:states :fields);
Expand All @@ -27,8 +30,6 @@ BEGIN {
};
}

use Socket::GetAddrInfo qw(:newapi getnameinfo NI_NUMERICHOST NI_NUMERICSERV);

use POE qw(
Driver::SysRW Filter::Stream
Filter::HTTPHead Filter::HTTPChunk
Expand Down

0 comments on commit 7628a0a

Please sign in to comment.