Skip Menu |
 

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

Report information
The Basics
Id: 13097
Status: resolved
Priority: 0/
Queue: IO-Socket-SSL

People
Owner: Nobody in particular
Requestors: martin [...] hybyte.com
Cc:
AdminCc:

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



Subject: close with sock_shutdown argument
Download (untitled) / with headers
text/plain 687b
At current the ussage of $ssl-sock->shutdown() is not possile, because the SSL socket does exrtra work during close, to finish the SSL session. In a multi process/forked enviroment it is sometimes not enought just to close the socket. An explicit call to shutdown() before close(), does also disables the file descriptor in any forked copies in other process (perldoc -f shutdown). The issue could be solved with a one line fix: allow ssl_socket->close(SOCK_SHUTDOWN => $how) and insert the following code snippet into IO::Socket::SSL's "sub close", imediatley before the call to SUPER::close. $self->shutdown($close_args->{SOCK_SHUTDOWN}) if ($close_args->{SOCK_SHUTDOWN});
Download (untitled) / with headers
text/plain 139b
Please see the documentation for close() in the IO::Socket::SSL POD. This issue is already addressed (using the SSL_no_shutdown argument).


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.