| Nginx-ru mailing list archive (nginx-ru@sysoev.ru) [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
 Re: PHP FastCGI É "upstream prematurely closed connection"
 
To: nginx-ru@xxxxxxxxxSubject: Re: PHP FastCGI É "upstream prematurely closed connection"From: Roxis <roxis@xxxxxxx>Date: Mon, 9 Apr 2007 09:45:44 +0200Dkim-signature: a=rsa-sha1; c=relaxed/relaxed;        d=gmail.com; s=beta;        h=domainkey-signature:received:received:from:to:subject:date:references:in-reply-to:x-mailer:mime-version:content-type:content-transfer-encoding:content-disposition:message-id:sender;        b=hk/WUSVc93Ow8qbWfUwBTPWKq8oEIJGYvpzh0hrj/pPPr3Dxu1wE2qcyRnch7jJmCLkCMqgA1xphyxerG9/DkOUGwEKy2bvEJJ58gcUrgUPStjYcQE16WxHIS+W6zSvSJEu2TcHxMPnoQ6zoGDcthInn23FKaD66N/56lZyDyJ0=Domainkey-signature: a=rsa-sha1; c=nofws;        d=gmail.com; s=beta;        h=received:from:to:subject:date:references:in-reply-to:x-mailer:mime-version:content-type:content-transfer-encoding:content-disposition:message-id:sender;        b=Q7h19g3Gruch4sVh+sgFypUHzUeMP0zMWMM5i+UBhXHO36Rln+Bxaz0BlIXh1svWpMx4daqML7xq8OrJFpytPmIxO+RD+nVkkFngj+Z2mfUfiYWy7gE6N3Q0CPlHfZuQlbpsWoc/9mQXCRcXYNKIawFbPMGnmpwgaFmusaMy8bM=In-reply-to: <35795279.20070409113942@xxxxxxxxx>References: <62473962.20070406160749@xxxxxxxxx> <auto-000164119810@xxxxxxxxxxxx> <35795279.20070409113942@xxxxxxxxx> 
 On Monday 09 April 2007, óÕÈÁÞÅ× áÎÄÒÅÊ wrote:
>      By default, PHP stops accepting new FastCGI connections after handling
> 500 requests; unfortunately, there is a potential race condition during the
> PHP cleanup code in which PHP can be shutting down but still have the
> socket open, so mod_fcgid under heavy load can send request number 501 to
> PHP and have it "accepted", but then PHP appears to simply exit, causing
> errors.
>   îÁÄÏ ÂÕÄÅÔ ÐÒÏ×ÅÒÉÔØ ÜÔÏ...
PHP_FCGI_MAX_REQUESTS ÐÏ ÄÅÆÏÌÔÕ ÒÁ×ÎÏ 500
 
 |