Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

support big responses for Apache 2 adaptor #633

Merged
merged 5 commits into from
Apr 27, 2015

Conversation

darkv
Copy link
Member

@darkv darkv commented Mar 12, 2015

The current Apache adaptor uses an unsigned int to store the content length reported by the WO application for a response. If you provide big files (read really big files) for streamed download the content length causes an integer overflow resulting in a wrong content length. Thus the download will be interrupted before completion.

This pull request parses the content length as long and changes the respective variable types to long types. This change has been successfully tested with Apache 2.2 and 2.4 on a productive application with high download traffic.

@prabier
Copy link

prabier commented Mar 12, 2015

Hi Johann. What is the environment you use in production? We will move to Debian 7 with Apache 2.4 so I was wondering…

@darkv
Copy link
Member Author

darkv commented Mar 12, 2015

Hi Philippe, using Ubuntu 14 with Apache 2.4 for that specific application.

darkv added a commit that referenced this pull request Apr 27, 2015
support big responses for Apache 2 adaptor
@darkv darkv merged commit 54359e2 into wocommunity:master Apr 27, 2015
@darkv darkv deleted the adaptor_long_response branch April 27, 2015 10:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants