6.0.0-alpha14
▾
Tasks
New Task
Search
Photos
Wiki
▾
Tickets
New Ticket
Search
dev.horde.org
Toggle Alerts Log
Help
6/24/25
H
istory
A
ttachments
C
omment
W
atch
Download
Comment on [#3159] browser timeout during long fetchmail sessions
*
Your Email Address
*
Spam protection
Enter the letters below:
. .__ .__ . ..__. | | \[__)\ /| | |___|__/| \ \/ |__\
Comment
> Hi, > > > > When I receive large attachments (2Mb+) at my account, fetchmail a > lot of times stops before the mail-fetch is finished. > > > > Actually, I believe it is the browser that stops. The reason is when > you click on the "Fetch Mail" icon in the popup, the web server > doesnt feed anything back to the browser at all until everything has > finished fetching. > > > > The browser simply times out and closes the connection because it > doesnt receive any response. This timeout have tested to vary from > 20seconds (IE) to up to 45seconds (FireFox). > > > > This problem is described here with a sample solution: (look under > Sjoerd van der Hoorn - 21 June) - I havent verified the sample > solution. > > http://fi.php.net/manual/en/function.set-time-limit.php > > > > (I have made sure my PHP max-execution-timeout is 300 and checked > with my host that APACHE's timeout is also 300seconds) > > > > I have done some modifications but they are not very neat at all, the > best way is to have something like a "progress bar" or something that > spits out something every 5-10seconds. > > > > My mods are cruide and doesnt fully work but kind of helps it a > little: I fetch from two accounts so have so far inserted a line in > Fetchmail.php (under imp/lib) approx line 299 (under the "foreach" > loop within function fetchmail() ): > > > > echo "<font color=white>Fetching mail for account: ".$val."</font><br>"; > > flush(); > > > > and at the same time swapped the output header lines in fetchmail.php > (under imp) so the header is spitted out to the browser before > fetchmail process begins. > > > > Suggestion: > > 1. progress bar, or just "full stop", or > > 2. just flush out blank-spaces or something which are not displayed > on the webpage but will keep the connection alive, or > > 3. anything else? > > > > If you can display how many messages fetchmail is fetching and the > total size right at the start that would be good too (??) > > > > Thanks :) > >
Attachment
Watch this ticket
N
ew Ticket
M
y Tickets
S
earch
Q
uery Builder
R
eports
Saved Queries
Open Bugs
Bugs waiting for Feedback
Open Bugs in Releases
Open Enhancements
Enhancements waiting for Feedback
Bugs with Patches
Enhancements with Patches
Release Showstoppers
Stalled Tickets
New Tickets
Horde 5 Showstoppers