php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #67087 slowlog kills mysql connection
Submitted: 2014-04-16 16:22 UTC Modified: -
From: k dot dolgopolov at ya dot ru Assigned:
Status: Open Package: FPM related
PHP Version: 5.4.27 OS: linux
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please — but make sure to vote on the bug!
Your email address:
MUST BE VALID
Solve the problem:
5 + 21 = ?
Subscribe to this entry?

 
 [2014-04-16 16:22 UTC] k dot dolgopolov at ya dot ru
Description:
------------
If mysql query is longer as request_slowlog_timeout, connection breaks.

Test script:
---------------
<?php

// request_slowlog_timeout = 10s  (at /etc/php5/fpm/php-fpm.conf)


// $mysqli =
// ...
$query = "SELECT SLEEP (15)";

$res = $mysqli->query($query);
if (!$res) {
	echo $mysqli->error; // Error Code: 2013. Lost connection to MySQL server during query
	exit;
}


Expected result:
----------------
connection must be preserved and the request should be executed


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2015-07-13 12:14 UTC] kbolyshev at gmail dot com
The same bug on PHP Version 5.5.9-1ubuntu4.5 (Ubuntu 14.04.1 LTS on Linode XEN).
 
PHP Copyright © 2001-2019 The PHP Group
All rights reserved.
Last updated: Fri Dec 06 08:01:24 2019 UTC