php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #70456 PHP mysqlnd doesn't activate TCP keep-alive when connecting to a server
Submitted: 2015-09-08 00:31 UTC Modified: -
From: turchanov at farpost dot com Assigned:
Status: Closed Package: MySQLi related
PHP Version: 5.6.13 OS: Linux
Private report: No CVE-ID: None
 [2015-09-08 00:31 UTC] turchanov at farpost dot com
Description:
------------
libmysqlclient activates TCP keep-alive when connecting to a server but mysqlnd doesn't do that. This breaks API guarantees provided by libmysqlclient.

Specifically this affect us in situation when IP address of a server migrates from host to another host conected PHP client hangs indefinitely (which didn't happen when we were using PHP libmysqlclient driver).

Proposed fix:
https://github.com/php/php-src/pull/1499



Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2015-09-09 01:21 UTC] cmb@php.net
Automatic comment on behalf of turchanov@farpost.com
Revision: http://git.php.net/?p=php-src.git;a=commit;h=7b3616db775ce11bd85918af2a7a38bb15c3729f
Log: Fix #70456: mysqlnd doesn't activate TCP keep-alive when connecting to a server
 [2015-09-09 01:21 UTC] cmb@php.net
-Status: Open +Status: Closed
 [2015-09-15 12:13 UTC] ab@php.net
Automatic comment on behalf of turchanov@farpost.com
Revision: http://git.php.net/?p=php-src.git;a=commit;h=7b3616db775ce11bd85918af2a7a38bb15c3729f
Log: Fix #70456: mysqlnd doesn't activate TCP keep-alive when connecting to a server
 
PHP Copyright © 2001-2017 The PHP Group
All rights reserved.
Last updated: Sun Nov 19 01:31:42 2017 UTC