Skip Menu |

This queue is for tickets about the Net-SMTPS CPAN distribution.

Report information
The Basics
Id: 123360
Status: resolved
Priority: 0/
Queue: Net-SMTPS

People
Owner: TOMO [...] cpan.org
Requestors: dfs [...] roaringpenguin.com
Cc:
AdminCc:

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



Subject: Supplying the Debug option also sets $IO::Socket::SSL::DEBUG and this should be documented
Hi, Supplying Debug => 1 to the Net::SMTPS constructor sets the global variable $IO::Socket::SSL::DEBUG to 1 also. This is surprising because enabling Net::SMTPS debugging has the effect of enabling IO::Socket::SSL debugging in unrelated code. While it's pretty much impossible to remedy this given the structure of Net::SMTPS, it should be documented so that callers can do something like: { local $IO::Socket::SSL:DEBUG; # Do something with Net::SMTPS } to isolate the changes to $IO::Socket::SSL::Debug Regards, Dianne.
I'll look into it. Thanks.
Changes: * set $IO::Socket::SSL::DEBUG into local as suggested. * added Debug_SSL option to constructor to control debugging SSL separately.