Forum Moderators: phranque

Message Too Old, No Replies

Apache connection reset issue

Cannot download file from apache under secure connection.

         

knightryder

11:11 am on Feb 28, 2011 (gmt 0)

10+ Year Member



Hello,

I am using Apache webserver on HP UNIX with below configuration.

Configuration Details:

-> httpd -v
Server version: Apache/1.3.41 (Unix)
Server built: Aug 28 2009 16:08:35

We have a cluster of three similar webservers running apache instance with the above configuration. I am running a Perl-CGI site from these webservers. Incoming traffic to my site gets routed to these servers through a load balancing switch with firewall.

Problem:

My site has a number of file download links. A weird phenomenon started surfacing recently. When I download files from my site within our local network (using http), downloads complete properly.

When I try to download from my site, from outside network or local network through a secured "https" connection, download goes on till 99% and then I receive a error saying

"Internet Explorer cannot download "filename" from "mysiteURL"
"The connection with the server was reset"


This error occurs for most of the files downloaded from my site but not all. This is where I get confused.

This has been a long term issue with my site. I've been researching this for a while, but no luck. Your inputs / suggestions are much appreciated. Please help!

lammert

3:21 pm on Mar 1, 2011 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



You should first of all see if any of the Apache log files gives some clue about this.

Secondly I would try if increasing the Timeout setting in your httpd.conf file helps. The problem may not be in the the encryption through https, but in the slower download compared to your local http download.

Is it possible that your load balancer is switching the connection to a different server halfway the download?

knightryder

1:28 pm on Mar 4, 2011 (gmt 0)

10+ Year Member



Thanks for your response. Below are the log information we get.

[Fri Mar 4 06:56:17 2011] [info] [client 10.25.200.5] (32)Broken pipe: client stopped connection before rflush completed


[Fri Mar 4 06:49:30 2011] [info] [client 209.30.88.63] (32)Broken pipe: client stopped connection before rwrite completed
[Fri Mar 4 06:49:30 2011] [debug] Apache.c(364): (32)Broken pipe: mod_perl: rwrite returned -1 (fd=7, B_EOUT=8)\n