php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #78690 Database persistent connection leaks with ZTS and Event, Worker MPMs
Submitted: 2019-10-18 13:09 UTC Modified: -
From: coladict at gmail dot com Assigned:
Status: Open Package: Apache2 related
PHP Version: 7.2.23 OS: Linux
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2019-10-18 13:09 UTC] coladict at gmail dot com
Description:
------------
When using the Prefork MPM, persistent MySQLi connections (for example, but not limited to MySQLi) are reused.
When using other MPMs, they are not. For traced it to:

ext/mysqli/mysqli_nonapi.c: 166

The EG(persistent_list) macro always returns a new list. This results in reaching the MySQL server's connection limit (default at 151) with having all of them waiting in sleep.




Patches

Add a Patch

Pull Requests

Add a Pull Request

 
PHP Copyright © 2001-2019 The PHP Group
All rights reserved.
Last updated: Sat Dec 07 07:01:24 2019 UTC