httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Igor Galić <i.ga...@brainsware.org>
Subject Re: [users@httpd] kill hanging CGIs
Date Fri, 28 Jan 2011 17:06:31 GMT

----- "Matus UHLAR - fantomas" <uhlar@fantomas.sk> wrote:

> Hello,
> 
> we provide our users possibility to upload their own CGI scripts,
> using
> suexec (in a limited environment, for security reasons). 
> 
> I found that a user uploaded CGI that calls flock() function which
> sometimes
> makes the CGI hang for a long time (hours).
> 
> Is there possibility to automatically kill such CGI processes after
> some
> time, so they won't cross eat our resources (file locks, for
> example)?
> 
> Unfortunately this can't be done by usint RlimitCPU because the
> process does
> nothing or nearly nothing.
> 
> Could mod_cgi or suexec kill the process after configured time?

nope.

mod_fcgid on the other hand can, take a look at it's docs:
http://httpd.apache.org/mod_fcgid/mod/mod_fcgid.html


> The apache version is 2.2.16 (gentoo linux).
> 
> Thank you
> 
> P.S. I know that the problem may lie outside of this problem, but I'm
> afraid
> that if processes will hang, I will just have to kill them somehow).
> -- 
> Matus UHLAR - fantomas, uhlar@fantomas.sk ; http://www.fantomas.sk/
> Warning: I wish NOT to receive e-mail advertising to this address.
> Varovanie: na tuto adresu chcem NEDOSTAVAT akukolvek reklamnu postu.
> On the other hand, you have different fingers. 
> 
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server
> Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>    "   from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org


i

-- 
Igor Galić

Tel: +43 (0) 664 886 22 883
Mail: i.galic@brainsware.org
URL: http://brainsware.org/

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message