Subject: | close with sock_shutdown argument |
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});