[rt-devel] Long attachments timeout
Stanislav Sinyagin
ssinyagin at yahoo.com
Mon Jul 28 05:29:47 EDT 2003
Hi all,
The mail handler needs some fixup.
Long attachments (more than 1.5 Mb) cause such error in Posfix mailq:
(temporary failure. Command output: An Error Occurred ================= 500
read timeout )
After the mail body is passed to Apache, the mail handler takes few minutes
to process the long attachment. During this post-processing, HTTP POST
operation is not yet finished, and Apache returns error 500 after 300 seconds
(the default Timeout value).
Then the attachment goes to the database, and gets delivered to
all relevant recipients, but the message is marked as "deferred"
in the mail queue. After some time,
postfix (or sendmail) tries to deliver it again.
As a result, you may have few dozens of jumbo attachments in your mailbox
during weekend.
The problem is resolved by increasing Apache Timeout value:
Timeout 3600
In addition, MaxRequestsPerChild is set to 10 in order to avoid
unlimited allocated memory growth.
I think the mail handler should finalize the HTTP session before starting
to process the message body.
This happens with RT 3.0.4, FreeBSD 4.8-STABLE, Pentium4, 2 GHz, 1Gb RAM,
IDE hdd, perl 5.8
Cheers,
Stan
More information about the Rt-devel
mailing list