Skip Menu |

This queue is for tickets about the IO-Socket-IP CPAN distribution.

Report information
The Basics
Id: 65544
Status: resolved
Priority: 0/
Queue: IO-Socket-IP

People
Owner: Nobody in particular
Requestors: leonerd-cpan [...] leonerd.org.uk
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: 0.06
Fixed in: 0.07



Subject: Constructor lacking Type or Protocol doesn't work on non-Linux
Synopsis doesn't set "Type" or "Protocol" hints. Standard IO::Socket::INET API doesn't either. This fails on non-Linux, because most resolvers want this hint, or else they'll return all possible combinations, confusing the ->setup method. Implying a default like Protocol => 'tcp' might be a solution, but would break those protocols that are only UDP according to /etc/services. Needs further thought, anyway. -- Paul Evans
On Mon Feb 07 18:48:48 2011, PEVANS wrote: Show quoted text
> Needs further thought, anyway.
Have eventually decided that, if neither Proto nor Type are provided, to imply a default of IPPROTO_TCP + SOCK_STREAM. This at least makes it match the API provided by IO::Socket::INET, as applications will be expecting. Patched in repo, will be in next (devel) release. -- Paul Evans