Bug #60961 [Com]: Graceful Restart (USR2) isn't very graceful

From: Date: Sun, 01 Jul 2018 08:35:57 +0000
Subject: Bug #60961 [Com]: Graceful Restart (USR2) isn't very graceful
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-216058@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=60961&edit=1

 ID:                 60961
 Comment by:         i at xstudio dot me
 Reported by:        phpbugs at oops dot mooo dot com
 Summary:            Graceful Restart (USR2) isn't very graceful
 Status:             Open
 Type:               Bug
 Package:            FPM related
 Operating System:   Debian Squeeze
 PHP Version:        7.0
 Block user comment: N
 Private report:     N

 New Comment:

mark!


Previous Comments:
------------------------------------------------------------------------
[2017-11-30 17:17:14] federico dot omoto at gmail dot com

And this is also affecting the recently released PHP 7.2.0.
Is this bug expected to be fixed in the short term?

------------------------------------------------------------------------
[2017-10-21 16:11:04] luke at viovet dot co dot uk

This is also affecting PHP 7.1 on Ubuntu 14.04 and 16.04. Please fix asap.

------------------------------------------------------------------------
[2017-01-26 11:05:33] albertcasademont at gmail dot com

Yes please, a graceful reload is needed urgently. And more generally, php-fpm needs some love

------------------------------------------------------------------------
[2017-01-02 16:28:50] konrad dot baumgart at moneyhouse dot de

This bug affects many people, but it seems the assigned person does not contribute to bugfixing
anymore.

Can we get it unassigned/reassigned?

Bug is still present with nginx 1.10 and php 7 communicating with unix socket

------------------------------------------------------------------------
[2015-06-05 11:22:45] razvanphp at yahoo dot com

I have the same problem with PHP 5.4.39-0+deb7u2, latest Debian Wheezy.

Nginx mainline 1.9 uses unix socket connection to php-fpm, but it results in 502 when reloading
php-fpm service.

Found this in the code, that seems to cause this:

static void sig_soft_quit(int signo) /* {{{ */
{
       int saved_errno = errno;

       /* closing fastcgi listening socket will force fcgi_accept() exit immediately */
       close(0);
       if (0 > socket(AF_UNIX, SOCK_STREAM, 0)) {
               zlog(ZLOG_WARNING, "failed to create a new socket");
       }
       fpm_php_soft_quit();
       errno = saved_errno;
}

------------------------------------------------------------------------


The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at

    https://bugs.php.net/bug.php?id=60961


--
Edit this bug report at https://bugs.php.net/bug.php?id=60961&edit=1


Thread (16 messages)

« previous php.bugs (#216058) next »