Package: liblog4r-ruby1.8
Version: 1.0.5-3

Coin paul :-)

Here is a nasty bug i encountered in my backup script. I told you about
this problem on IRC and found the problem is in log4r.

Here is the mail logs which were the start of my understanding:
Apr  8 00:54:03 Daneel postfix/smtpd[14751]: connect from
localhost[127.0.0.1]
Apr  8 00:59:03 Daneel postfix/smtpd[14751]: timeout after EHLO from
localhost[127.0.0.1]
Apr  8 00:59:03 Daneel postfix/smtpd[14751]: disconnect from
localhost[127.0.0.1]

In this example, my script started at 00:54:03 and finished at
01:04:51. The emailoutputter is opening a connexion with:
  @smtp = Net::SMTP.start([EMAIL PROTECTED])
in the constructor and flushing the mail when i explicitely call the
flush() method, at the end of my processing. Fact is Net::SMTP.start is
opening a connexion, sending the EHLO, and then hold it opened until you
send data and close it. When the processing is longer than 5 minutes,
the smtp server close the connexion and the mail is never sent ; not
even an exeption is raised when the flush is requested.

The emailoutputter can still do a simple check in the constructor, but
the connexion should be closed, and reopened later when flushing.

Regards.

-- 
Marc Dequènes (Duck)

Attachment: pgpwySPXM7Emz.pgp
Description: PGP signature

Reply via email to