logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
Post new topic   Forum Index -> Apache View previous topic :: View next topic
Reply to topic   Topic: Download of big files stops at 124MB
Author
giox069



Joined: 24 Feb 2017
Posts: 1

PostPosted: Fri 24 Feb '17 16:35    Post subject: Download of big files stops at 124MB Reply with quote

I'm using Apache 2.4.25 (httpd-2.4.25-win64-VC14.zip) under windows server 2016.
I have a 300MB zip file published in a directory. When a client tries to download it AND the client can download at a bandwidth speed slower than 20Mbps, the connection closes exactly at 130023424 bytes (124MB). It happens with firefox, chrome and wget.
I can reproduce the problem locally from linux and Mac with
Code:
wget --limit-rate=2000000 http://xxxx/yyy/filename.zip


I have seen other three similar posts starting back to 2012:
https://www.apachelounge.com/viewtopic.php?p=23294
https://www.apachelounge.com/viewtopic.php?p=23437
https://www.apachelounge.com/viewtopic.php?p=25733

I applied the only workaround available: EnableSendfile On on the virtualhost, and it solved the problem.

But... I think it's a bug, and it should be solved in the code.
Back to top
glsmith
Moderator


Joined: 16 Oct 2007
Posts: 2268
Location: Sun Diego, USA

PostPosted: Fri 24 Feb '17 19:35    Post subject: Reply with quote

I don't think it's a bug. As I mentioned in that second link it was just On by default in 2.2.

It's spelled out in the docs what it does and why
http://httpd.apache.org/docs/2.4/mod/core.html#enablesendfile

I think this is one of those "damned if I do, damned if I don't" things for Apache. Either way the default is someone is going to complain.

Grab a 2.2 (Apache Haus still has them for a short while longer) and try testing the feature by turning it off and downloading your 300mb file. If you get the entire file then maybe it is a bug.
Back to top


Reply to topic   Topic: Download of big files stops at 124MB View previous topic :: View next topic
Post new topic   Forum Index -> Apache