Hi All

For a number of weeks now I've been having trouble with ASSP hanging and
'monit' has had to restart ASSP.

I turned on DEBUGGING this afternoon and found out very quickly that it
looked like some sort of SSL issue as the logs below show.

==> Mar-11-11-21-59-29.dbg <==
Mar-11-11 22-15-39 <closing IO::Socket::INET=GLOB(0xa0d4c08)>
Mar-11-11 22-15-39 <finished closing connection>
Mar-11-11 22-15-39 <done2>
Mar-11-11 22:15:39 Disconnected: 94.97.20.1;
Mar-11-11 22-15-39 <closing IO::Socket::SSL=GLOB(0xa0881f0)>

==> Mar-11-11-21-58-43.dbg <==
Mar-11-11 21-59-22 <closing IO::Socket::INET=GLOB(0x9817fc0)>
Mar-11-11 21-59-22 <finished closing connection>
Mar-11-11 21-59-22 <done2>
Mar-11-11 21:59:22 Disconnected: 113.162.241.176;
Mar-11-11 21-59-22 <closing IO::Socket::SSL=GLOB(0x98119c0)>

A search on the internet found the comments on this page
http://search.cpan.org/~behroozi/IO-Socket-SSL-0.97/SSL.pm about how
that SSL connections need to be correctly closed or they will hang.
(look for 'nasty traps that lie')

Now I'm not a perl coder at all and my hack is not correct but I'm not
sure how best to actual write the code but I followed the details
mentioned on this page and added the 'SSL_ctx_free' to a conditional
close in the sub code 'done2'.

----
    # close it
    eval { $fh->close(SSL_ctx_free => 1); } if ( anyfh($fh, @lsnSSL) &&
fileno($fh) );
    eval { $fh->close; } if ( ! anyfh($fh, @lsnSSL) && fileno($fh) );
----

But at the end of all this still hanging in the same location.

I added some extra debug lines and found that the hang is caused by the
close.

Mar-12-11 08:36:35 <done2>
Mar-12-11 08:36:35 Disconnected: 94.99.52.112;
Mar-12-11 08:36:35 <closing IO::Socket::SSL=GLOB(0xa049a68)>
Mar-12-11 08:36:35 <closed maillog>
Mar-12-11 08:36:35 <closed select structure>

----
    d('closed select structure');

    # close it
    eval { $fh->close(SSL_no_shutdown => 1); } if ( anyfh($fh, @lsnSSL)
&& fileno($fh) );
    eval { $fh->close; } if ( ! anyfh($fh, @lsnSSL) && fileno($fh) );
    d('closed socket');
----

I'm running Active Perl v5.10.0, build number 1002 and all ppm and cpan
modules have been upgraded.

So hopefully this information will help.

Cheers
Mike







------------------------------------------------------------------------------
Colocation vs. Managed Hosting
A question and answer guide to determining the best fit
for your organization - today and in the future.
http://p.sf.net/sfu/internap-sfd2d
_______________________________________________
Assp-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/assp-user

Reply via email to