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 checki

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 fcg

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

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

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,

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 compi

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 t

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