| Ticket UUID: | 557040 | |||
| Title: | timeout immediately on large messages | |||
| Type: | Bug | Version: | None | |
| Submitter: | tcoram | Created on: | 2002-05-17 01:51:50 | |
| Subsystem: | smtp | Assigned To: | mrose | |
| Priority: | 5 Medium | Severity: | ||
| Status: | Closed | Last Modified: | 2002-07-26 01:44:22 | |
| Resolution: | None | Closed By: | andreas_kupries | |
| Closed on: | 2002-07-25 18:44:22 | |||
| Description: |
sendmessage timeout value grows ridiculously large as
the size of the message (mime part) increases.
The calculation used is:
set secs [expr {(($state(size)>>10)+1)*3600}]
which is then used by "after [expr {$secs*1000}]" to
calculate how long to wait for the SMTP server to accept
the message.
For small messages, its reasonable. For large messages,
you effectively never time out. For very large messages,
you exceed the capacity of an int (and the milliseconds
become negative) and the timeout happens immediately.
The calculation needs to be fixed (or capped). Better
yet, why not just allow a parameter to be passed
to sendmessage to allow the user to specify how many
seconds to wait for the message to be sent?
I have done the latter, and can post a patch when I get
a decent default calculation for the latter worked out.
| |||
| User Comments: |
andreas_kupries added on 2002-07-26 01:44:22:
Logged In: YES user_id=75003 The relevant patch is #557520, and #558132. Accepted by mrose. mrose added on 2002-05-18 05:28:48: Logged In: YES user_id=24077 okay, post a patch and we'll take a look at it... thanks! | |||
Home
Blog
Docs
Downloads
Tickets
Timeline
Branches
Tags
Wiki