Skip Menu |
 

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

Report information
The Basics
Id: 109036
Status: rejected
Priority: 0/
Queue: IO-Socket-SSL

People
Owner: Nobody in particular
Requestors: TODDR [...] cpan.org
Cc:
AdminCc:

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



Subject: Why IO::Socket::IP
Download (untitled) / with headers
text/plain 511b
In IO::Socket::SSL, the comments say: # if we have IO::Socket::IP >= 0.31 we will use this in preference However IO::Socket::IP uses POSIX and we have a rather aggressive policy not to use modules that use POSIX if we can help it. My question: If I patch IO::Socket::SSL to not use IO::Socket::IP, but rather IO::Socket from perl 5.22 (which assumedly has all the cool INET6 stuff), Are there any other side effects to not using IO::Socket::IP? In other words: Why is IO::Socket::IP preferred? Thanks! Todd
Download (untitled) / with headers
text/plain 1.4k
Am Mo 16. Nov 2015, 14:56:55, TODDR schrieb: Show quoted text
> In IO::Socket::SSL, the comments say: > > # if we have IO::Socket::IP >= 0.31 we will use this in preference > > However IO::Socket::IP uses POSIX and we have a rather aggressive > policy not to use modules that use POSIX if we can help it. > > My question: If I patch IO::Socket::SSL to not use IO::Socket::IP, but > rather IO::Socket from perl 5.22 (which assumedly has all the cool > INET6 stuff), Are there any other side effects to not using > IO::Socket::IP? > > In other words: Why is IO::Socket::IP preferred?
Hi Todd, IO::Socket::IP is the only established way to do IPv6 in Perl in a comfortable way (i.e. using the IO::Socket::* modules). And If I understand the code of IO::Socket correctly it does not provide any IPv6 functionality by itself but refers to IO::Socket::IP for this, same as it refers to IO::Socket::INET for IPv4 (see the register_domain functionality). Thus it would not help to base the code on IO::Socket instead of IO::Socket::IP. If you don't need IPv6 you can load IO::Socket::SSL with 'inet4'. In this case it will be based on IO::Socket::INET instead of IO::Socket::IP. Apart from that I suggest that you contact the author of IO::Socket::IP to see if it would be possible to work without the POSIX module. But you probably would need the right arguments instead of just pointing to your policy of avoiding anything tainted by POSIX. Based on my experience the author is open to useful patches. Regards, Steffen


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.