httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bostjan Skufca <bost...@a2o.si>
Subject Re: [users@httpd] Incomplete file downloads if Apache HTTPD is killed
Date Mon, 09 May 2011 14:26:19 GMT
On 9 May 2011 15:44, Matus UHLAR - fantomas <uhlar@fantomas.sk> wrote:

> So that was bad way to simulate "apachectl stop" just because of the above.
> I think with 2.2 it even is not true, because apache2 has own way to
> configure shutdown timeouts, the GracefulShutdownTimeout directive.

Yes, timeout is configurable, but that was the only lie there:)


> While talking about killed server and knowing that the file was
> transferred - It's often impossible to know. The chunked encoding or the
> Content-Length header are needed to know if the whole file was transfered.

Chunked content encoding does not help here. Also, my experiments with
few popular browsers has shown that they don't even try to support
Content-Length correctly. I've been watching HTTP headers and correct
Content-Length was specified, then I started a download and then
killed the HTTPD child that served the download request before the
download was completed. AND browsers did not even complain about
failed download, they just stopped downloading with message "Download
complete" or (if I selected to run the executable) complained about
downloaded file being corrupt, but not incomplete.

It does not work with gzip and Firefox too, just tried it. "Download complete."

So here is the question again - is there something one can do with
Apache (or Linux/other OS) that will change browser's behaviour in a
way that it will report incomplete download to the user?

Thank you for your time BTW,
b.



>
> --
> Matus UHLAR - fantomas, uhlar@fantomas.sk ; http://www.fantomas.sk/
> Warning: I wish NOT to receive e-mail advertising to this address.
> Varovanie: na tuto adresu chcem NEDOSTAVAT akukolvek reklamnu postu.
> WinError #99999: Out of error messages.
>
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>   "   from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message