LiteSpeed Technologies
Download Download     Blog Blog     Wiki Wiki     Forum Forum     Store     Contact Contact    

Go Back   LiteSpeed Support Forums > External Applications > PHP > Php file uploads result in "connection reset" error

Reply
 
Thread Tools Display Modes
  #1  
Old 06-01-2006, 11:49 PM
bazza bazza is offline
Member
 
Join Date: Jun 2006
Posts: 13
Default Php file uploads result in "connection reset" error

Greetings,

We are running into a problem when uploading files (specifically images) via php. What happens is that the upload will stop and the user will receive the following message in their browser:

"Connection Interrupted
The document contains no data.
The network link was interrupted while negotiating a connection. Please try again."

It doesnt happen all the time, and the larger the image to be uploaded, the more prevalent the problem seems to be. 20k images usually upload without a problem, but 500k images may have a problem 75% of the time.

What is somewhat strange is that on non-live servers (servers with no traffic) the problem does not exist, and the images upload without issue. Sending production traffic to the same server causes the problem to surface.

I have tried with the following litespeed/php combinantions:

2.1.16 Enterprise/4.4.2
2.1.16 Standard/4.4.2
2.1.15 Standard/4.4.0
2.1.14 Standard/4.4.0

The problem persists with all combinations.

I have tried adjusting the various timeout values, but they dont seem to have any impact. The time elsapsed before the error is retured varies per upload attempt -- sometimes it will be 5 sec, sometimes more than 60 sec, even when the file being uploaded is the same size each attempt.

Enabling DEBUG logging seems to show the following at or around the time of the connection reset:

[DEBUG] [idle] [ExtConn] close()

We are using lsapi in all cases and the image uploads are taking place over SSL. The problem seems to exist when using any browserr and therefore does not appear to be browser-specific.

Any help tracking down the cause of these connection resets and how to resolve them would be much appreciated.

Barry
Wordpress.com
Reply With Quote
  #2  
Old 06-02-2006, 12:17 AM
xing xing is offline
LiteSpeed Staff
 
Join Date: Oct 2003
Location: Los Angeles, California
Posts: 380
Barry,

Can you be more specific on the platform the LiteSpeed/PHP is delpoyed on? Solaris 10? RH Linux?

If you can, please send the /lswsinstall/conf/httpd_config.xml and the /lswsinstall/vhost/conf/vhost.xml to bug@litespeedtech.com so we can better replicate your problem.

One more thing, are you currently using the latest PHP LSAPI currently at version 2.1?

Last edited by xing; 06-02-2006 at 12:22 AM..
Reply With Quote
  #3  
Old 06-02-2006, 12:24 AM
bazza bazza is offline
Member
 
Join Date: Jun 2006
Posts: 13
Xing,

Sorry about that. All our LiteSpeed deployments Debian Sarge AMD64 and Ubuntu Breezy 64-bit. I will forward the config files to you in a couple minutes.
Reply With Quote
  #4  
Old 06-02-2006, 07:19 AM
bazza bazza is offline
Member
 
Join Date: Jun 2006
Posts: 13
Xing,

Sending email to that address fails with this error:


bug@litespeedtech.com
bad owner for /home/bug/.forward: retry timeout exceeded


Is there another account where I should send the requested config files?
Reply With Quote
  #5  
Old 06-02-2006, 11:40 AM
xing xing is offline
LiteSpeed Staff
 
Join Date: Oct 2003
Location: Los Angeles, California
Posts: 380
You can also email them to xing@litespeedtech.com. Thanks.
Reply With Quote
  #6  
Old 06-02-2006, 04:35 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,590
The problem with bug @ litespeedtech has been fixed. Please send again.

Can you please try the upload with non-SSL connection, we need to isolate the problem.

Also, it will help a lot if you can send us the error log with DEBUG logging for analysis.

Thanks,
George
Reply With Quote
  #7  
Old 06-02-2006, 06:59 PM
bazza bazza is offline
Member
 
Join Date: Jun 2006
Posts: 13
Hi,

I resent the files to bug@ and cc'ed xing@

I will see about trying the uploads over non-SSL and let you know what I discover.

Regarding the debug log -- in our test environment, I cannot replicate the error, so although I can send the debug log from a production server, it will have lots of un-related info in it. Let me see what I can do.

Thanks again.
Reply With Quote
  #8  
Old 06-09-2006, 12:25 PM
xing xing is offline
LiteSpeed Staff
 
Join Date: Oct 2003
Location: Los Angeles, California
Posts: 380
Just an update on this bug. We took this bug report privately and the fix for the problem was committed to our 2.1.17 tree on 6/3. The problem was with file upload operation over a SSL connection. 2.1.17 has not been released to the public.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
PHP - 503 error sofatime PHP 8 07-09-2007 06:55 AM
Very odd PHP error, any file name that starts with admin (admin.php/admintest.php) chernann PHP 4 07-07-2007 06:38 PM
Problem installing ruby-lsapi sfreiberg Install/Configuration 11 10-17-2006 01:56 PM
Bug with File Uploads in 2.1.7 ripkens Bug Reports 19 01-04-2006 11:12 AM
PHP No input file specified. error SyNeo Install/Configuration 4 10-31-2005 12:12 PM


All times are GMT -7. The time now is 02:11 PM.



- Archive - Top
© Copyright 2003-2011 LiteSpeed Technologies, Inc. All rights reserved. Privacy Policy.