[Mod-fcgid-users] Fwd: mod_fcgid with php CGI hangs on interrupted downloads

2011-02-21 Thread Liam O'Boyle
Morning,

I still haven't had any luck addressing this problem; I'm posting this
in the hope that someone has some sort of idea, otherwise I will have
to scrap mod_fcgid and revert to mod_php this evening, as this is
causing considerable problems for our users.

Thanks for any assistance,

Liam


-- Forwarded message --
From: Liam O'Boyle l...@elyobo.net
Date: Tue, Feb 8, 2011 at 4:46 PM
Subject: mod_fcgid with php CGI hangs on interrupted downloads
To: mod-fcgid-users@lists.sourceforge.net


Hi there,

I'm having an issue with downloads through PHP when using mod_fcgid;
if the download is interrupted before it's complete, the php-cgi
process seems to block until the execution timeout is reached, rather
than aborting immediately.  Further requests to the server by the
same user that interrupted the download hang until the process aborts
and the php-cgi process starts serving more requests, but requests by
other users do not appear to be affected.

It doesn't appear to be a PHP problem, as the same code, when run
using mod_php, executes correctly.

Does anyone have any suggestions that I could look into to fix this?

A full explanation is up on ServerFault -
http://serverfault.com/questions/226464/php-fcgid-hangs-if-download-interrupted

Thanks for any help,

Liam

--
Index, Search  Analyze Logs and other IT data in Real-Time with Splunk 
Collect, index and harness all the fast moving IT data generated by your 
applications, servers and devices whether physical, virtual or in the cloud.
Deliver compliance at lower cost and gain new business insights. 
Free Software Download: http://p.sf.net/sfu/splunk-dev2dev
___
Mod-fcgid-users mailing list
Mod-fcgid-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mod-fcgid-users


Re: [Mod-fcgid-users] Fwd: mod_fcgid with php CGI hangs on interrupted downloads

2011-02-21 Thread Josiah Purtlebaugh
I don't have any solutions for you, but I'd recommend trying to discover where 
or why it's hanging. The tool 'strace' would be most useful in figuring this 
out.

The ideas that come to mind off the top of my head are problems with file size, 
the memory of the child processes, or something like that. A dump of the 
php-cgi process might lead to you figuring out the true issue, though.

Josiah Purtlebaugh
josiah.purtleba...@gmail.com
+1 253 797 4233

On Feb 21, 2011, at 4:12 PM, Liam O'Boyle wrote:

 Morning,
 
 I still haven't had any luck addressing this problem; I'm posting this
 in the hope that someone has some sort of idea, otherwise I will have
 to scrap mod_fcgid and revert to mod_php this evening, as this is
 causing considerable problems for our users.
 
 Thanks for any assistance,
 
 Liam
 
 
 -- Forwarded message --
 From: Liam O'Boyle l...@elyobo.net
 Date: Tue, Feb 8, 2011 at 4:46 PM
 Subject: mod_fcgid with php CGI hangs on interrupted downloads
 To: mod-fcgid-users@lists.sourceforge.net
 
 
 Hi there,
 
 I'm having an issue with downloads through PHP when using mod_fcgid;
 if the download is interrupted before it's complete, the php-cgi
 process seems to block until the execution timeout is reached, rather
 than aborting immediately.  Further requests to the server by the
 same user that interrupted the download hang until the process aborts
 and the php-cgi process starts serving more requests, but requests by
 other users do not appear to be affected.
 
 It doesn't appear to be a PHP problem, as the same code, when run
 using mod_php, executes correctly.
 
 Does anyone have any suggestions that I could look into to fix this?
 
 A full explanation is up on ServerFault -
 http://serverfault.com/questions/226464/php-fcgid-hangs-if-download-interrupted
 
 Thanks for any help,
 
 Liam
 
 --
 Index, Search  Analyze Logs and other IT data in Real-Time with Splunk 
 Collect, index and harness all the fast moving IT data generated by your 
 applications, servers and devices whether physical, virtual or in the cloud.
 Deliver compliance at lower cost and gain new business insights. 
 Free Software Download: http://p.sf.net/sfu/splunk-dev2dev
 ___
 Mod-fcgid-users mailing list
 Mod-fcgid-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/mod-fcgid-users


--
Index, Search  Analyze Logs and other IT data in Real-Time with Splunk 
Collect, index and harness all the fast moving IT data generated by your 
applications, servers and devices whether physical, virtual or in the cloud.
Deliver compliance at lower cost and gain new business insights. 
Free Software Download: http://p.sf.net/sfu/splunk-dev2dev
___
Mod-fcgid-users mailing list
Mod-fcgid-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mod-fcgid-users


Re: [Mod-fcgid-users] Fwd: mod_fcgid with php CGI hangs on interrupted downloads

2011-02-21 Thread Noor
Hi Liam,

Try adding this to the VirtualHost configuration for the intended website:

IPCCommTimeout 300

In addition, I'd recommend starting with a bare-bones Apache (without any
additional 3rd party module, like Suhosin and others) and then activating
only FastCGI with PHP. Best is when you compile PHP from sources.

I run Apache 2.2, FCGI, PHP5 on Debian and have no issues for years. The
only difference than your configuration is: I compile PHP5 from sources.
Actually I do that all the time in FreeBSD servers, but since Debian is a
development machine, I only build PHP5 from sources.

/Noor


On Tue, Feb 22, 2011 at 12:12 AM, Liam O'Boyle l...@elyobo.net wrote:

 Morning,

 I still haven't had any luck addressing this problem; I'm posting this
 in the hope that someone has some sort of idea, otherwise I will have
 to scrap mod_fcgid and revert to mod_php this evening, as this is
 causing considerable problems for our users.

 Thanks for any assistance,

 Liam



--
Index, Search  Analyze Logs and other IT data in Real-Time with Splunk 
Collect, index and harness all the fast moving IT data generated by your 
applications, servers and devices whether physical, virtual or in the cloud.
Deliver compliance at lower cost and gain new business insights. 
Free Software Download: http://p.sf.net/sfu/splunk-dev2dev___
Mod-fcgid-users mailing list
Mod-fcgid-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mod-fcgid-users