[Mimedefang] md_check_against_smtp_server() returned an empty response

2013-03-27 Thread Richard Laager
This is unrelated to the other thread.

I'm troubleshooting an issue where md_check_against_smtp_server()
intermittently hangs for 5 minutes. It's *always* 300 seconds exactly
(ignoring sub-second precision).

The error is always the returned an empty response from
get_smtp_return_code().

I'm using this function for doing callbacks against the sender's
address. I look up the MX records using Net::DNS. Before you hate me too
much, I cache positive responses for 7 days and negative responses for 1
hour. The delays discussed above are around the actual
md_check_against_smtp_server() call and *nothing else*. To get this far,
I had to instrument my filter with logging before and after every
non-trivial block of code.

Does anyone have any idea why the 15 second IO::Socket::INET timeout
isn't applying in these cases?

Thanks,
Richard


signature.asc
Description: This is a digitally signed message part
___
NOTE: If there is a disclaimer or other legal boilerplate in the above
message, it is NULL AND VOID.  You may ignore it.

Visit http://www.mimedefang.org and http://www.roaringpenguin.com
MIMEDefang mailing list MIMEDefang@lists.roaringpenguin.com
http://lists.roaringpenguin.com/mailman/listinfo/mimedefang


Re: [Mimedefang] md_check_against_smtp_server() returned an empty response

2013-03-27 Thread Steffen Kaiser

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On Wed, 27 Mar 2013, Richard Laager wrote:


I'm troubleshooting an issue where md_check_against_smtp_server()
intermittently hangs for 5 minutes. It's *always* 300 seconds exactly
(ignoring sub-second precision).

I'm using this function for doing callbacks against the sender's
address. I look up the MX records using Net::DNS. Before you hate me too


:-|


Does anyone have any idea why the 15 second IO::Socket::INET timeout
isn't applying in these cases?


tar-pitting? IMHO, the timeout kicks in when there are no TCP alive 
packets. But when the other partner sends keep alive packets, but does not 
respond simply.


- -- 
Steffen Kaiser

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.11 (GNU/Linux)

iQEVAwUBUVK4+p8mjdm1m0FfAQL84wgAkFbNP1dGeHiQ1RhilKnPpyGdxHQ4GwSQ
bFwK2IUhn3WfBSg0n9xHZZpZidsbsc8rwap3ExKEvJwgPgJJF4iVo5y3MvHTK0cQ
HTyN85eovgmsdxdnBk3aa7zJoc9QKfCMj4soTNtmaMMVYcaFXS82hpUwluf6ukZD
z0stXY4pD+IngHcs+LXlUKa5o7ysU+/t3p12no+/yZqpEty97fJq8v2gk0HqbwF0
RQG+WaBNJNJ9mmSwAfGjgLV6m5K/9EHVXyv2e9Nmm+Mc5yGY6j10Rb+Flm4erN/9
PTSCNmrb+hGoviubzAAKGhVTSTvrZX4uIowg37VrDijknZpc52ekfA==
=BsnM
-END PGP SIGNATURE-
___
NOTE: If there is a disclaimer or other legal boilerplate in the above
message, it is NULL AND VOID.  You may ignore it.

Visit http://www.mimedefang.org and http://www.roaringpenguin.com
MIMEDefang mailing list MIMEDefang@lists.roaringpenguin.com
http://lists.roaringpenguin.com/mailman/listinfo/mimedefang