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

2011-02-23 Thread Liam O'Boyle
Evening,

I have finally identified part of the problem, although I'm not quite
sure why it occurs when using fcgid and not when using mod_php.  The
problem is related to the locking of the PHP session; I noticed that
the locking problem didn't occur if I didn't start the session, so
further checking led me to this post on the PHP site -
http://www.php.net/manual/en/ref.session.php#64525.  The upshot is
that calling session_write_close() before outputting the file appears
to resolve the problem for fcgid.

Thanks for your help folks.

Liam


On Wed, Feb 23, 2011 at 11:19 AM, Josiah Purtlebaugh
 wrote:
> Liam,
>
> I was misunderstanding your issue. In this instance, I might suggest 
> *lowering* your IPCCommTimeout variable, though it might have a negative 
> effect on longer downloads.
>
> Other than that, I don't think I have the experience necessary to solve this; 
> you might require some change to the fcgid codebase in order to change 
> timeout behavior or be more proactive on checking the socket state...
>
> Josiah Purtlebaugh
> josiah.purtleba...@gmail.com
> +1 253 797 4233
>
> On Feb 22, 2011, at 3:01 PM, Liam O'Boyle wrote:
>
>> Morning,
>>
>> They hang whenever interrupted; if a download would have taken 2
>> seconds and I cancel it, then the PHP process will hang until the
>> timeout is reached; the same behaviour is observed with files of all
>> sizes.
>>
>> Liam
>>
>> On Wed, Feb 23, 2011 at 9:46 AM, Josiah Purtlebaugh
>>  wrote:
>>> Liam,
>>>
>>> Someone else commented that you should increase the value of your 
>>> IPCCommTimeout setting; I'd recommend this as well, though I have to ask, 
>>> as these uploads taking multiple minutes to complete or do they hang fairly 
>>> quickly?
>>>
>>> Josiah Purtlebaugh
>>> josiah.purtleba...@gmail.com
>>> +1 253 797 4233
>>>
>>> On Feb 22, 2011, at 6:03 AM, Liam O'Boyle wrote:
>>>
 Hi Josiah,

 There was a strace snippet in the linked serverfault page, as follows

 root@some-machine:~# strace -p 24837
 Process 24837 attached - interrupt to quit
 write(3, 
 "\5|A\313%\35\337\376\275\237\230\266\242\371\37YjzD<\322\215\357\336:M\362P\335\242\214\341"...,
 17432

 Just hanging on that, or something like it, each time.  I assume this
 is blocking trying to write back to the fcgid handler.

 Thanks,
 Liam

 On Tue, Feb 22, 2011 at 12:12 PM, Josiah Purtlebaugh
  wrote:
> 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 
>> 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.
>> F

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

2011-02-22 Thread Josiah Purtlebaugh
Liam,

I was misunderstanding your issue. In this instance, I might suggest *lowering* 
your IPCCommTimeout variable, though it might have a negative effect on longer 
downloads.

Other than that, I don't think I have the experience necessary to solve this; 
you might require some change to the fcgid codebase in order to change timeout 
behavior or be more proactive on checking the socket state...

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

On Feb 22, 2011, at 3:01 PM, Liam O'Boyle wrote:

> Morning,
> 
> They hang whenever interrupted; if a download would have taken 2
> seconds and I cancel it, then the PHP process will hang until the
> timeout is reached; the same behaviour is observed with files of all
> sizes.
> 
> Liam
> 
> On Wed, Feb 23, 2011 at 9:46 AM, Josiah Purtlebaugh
>  wrote:
>> Liam,
>> 
>> Someone else commented that you should increase the value of your 
>> IPCCommTimeout setting; I'd recommend this as well, though I have to ask, as 
>> these uploads taking multiple minutes to complete or do they hang fairly 
>> quickly?
>> 
>> Josiah Purtlebaugh
>> josiah.purtleba...@gmail.com
>> +1 253 797 4233
>> 
>> On Feb 22, 2011, at 6:03 AM, Liam O'Boyle wrote:
>> 
>>> Hi Josiah,
>>> 
>>> There was a strace snippet in the linked serverfault page, as follows
>>> 
>>> root@some-machine:~# strace -p 24837
>>> Process 24837 attached - interrupt to quit
>>> write(3, 
>>> "\5|A\313%\35\337\376\275\237\230\266\242\371\37YjzD<\322\215\357\336:M\362P\335\242\214\341"...,
>>> 17432
>>> 
>>> Just hanging on that, or something like it, each time.  I assume this
>>> is blocking trying to write back to the fcgid handler.
>>> 
>>> Thanks,
>>> Liam
>>> 
>>> On Tue, Feb 22, 2011 at 12:12 PM, Josiah Purtlebaugh
>>>  wrote:
 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 
> 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/s

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

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

They hang whenever interrupted; if a download would have taken 2
seconds and I cancel it, then the PHP process will hang until the
timeout is reached; the same behaviour is observed with files of all
sizes.

Liam

On Wed, Feb 23, 2011 at 9:46 AM, Josiah Purtlebaugh
 wrote:
> Liam,
>
> Someone else commented that you should increase the value of your 
> IPCCommTimeout setting; I'd recommend this as well, though I have to ask, as 
> these uploads taking multiple minutes to complete or do they hang fairly 
> quickly?
>
> Josiah Purtlebaugh
> josiah.purtleba...@gmail.com
> +1 253 797 4233
>
> On Feb 22, 2011, at 6:03 AM, Liam O'Boyle wrote:
>
>> Hi Josiah,
>>
>> There was a strace snippet in the linked serverfault page, as follows
>>
>> root@some-machine:~# strace -p 24837
>> Process 24837 attached - interrupt to quit
>> write(3, 
>> "\5|A\313%\35\337\376\275\237\230\266\242\371\37YjzD<\322\215\357\336:M\362P\335\242\214\341"...,
>> 17432
>>
>> Just hanging on that, or something like it, each time.  I assume this
>> is blocking trying to write back to the fcgid handler.
>>
>> Thanks,
>> Liam
>>
>> On Tue, Feb 22, 2011 at 12:12 PM, Josiah Purtlebaugh
>>  wrote:
>>> 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 
 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
>>>
>>
>> --
>> 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
>> 

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

2011-02-22 Thread Josiah Purtlebaugh
Liam,

Someone else commented that you should increase the value of your 
IPCCommTimeout setting; I'd recommend this as well, though I have to ask, as 
these uploads taking multiple minutes to complete or do they hang fairly 
quickly?

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

On Feb 22, 2011, at 6:03 AM, Liam O'Boyle wrote:

> Hi Josiah,
> 
> There was a strace snippet in the linked serverfault page, as follows
> 
> root@some-machine:~# strace -p 24837
> Process 24837 attached - interrupt to quit
> write(3, 
> "\5|A\313%\35\337\376\275\237\230\266\242\371\37YjzD<\322\215\357\336:M\362P\335\242\214\341"...,
> 17432
> 
> Just hanging on that, or something like it, each time.  I assume this
> is blocking trying to write back to the fcgid handler.
> 
> Thanks,
> Liam
> 
> On Tue, Feb 22, 2011 at 12:12 PM, Josiah Purtlebaugh
>  wrote:
>> 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 
>>> 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
>> 
> 
> --
> 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


--
Free Software Download: Index, Search & Analyze Logs and other IT data in 
Real-Time with Splunk. Collect, index and harness all the fast movin

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

2011-02-22 Thread Liam O'Boyle
Hi Josiah,

There was a strace snippet in the linked serverfault page, as follows

root@some-machine:~# strace -p 24837
Process 24837 attached - interrupt to quit
write(3, 
"\5|A\313%\35\337\376\275\237\230\266\242\371\37YjzD<\322\215\357\336:M\362P\335\242\214\341"...,
17432

Just hanging on that, or something like it, each time.  I assume this
is blocking trying to write back to the fcgid handler.

Thanks,
Liam

On Tue, Feb 22, 2011 at 12:12 PM, Josiah Purtlebaugh
 wrote:
> 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 
>> 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
>

--
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  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


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 
> 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


[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 
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