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
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 !
Your email address:
MUST BE VALID
Solve the problem:
38 - 12 = ?
Subscribe to this entry?

 
 [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-2024 The PHP Group
All rights reserved.
Last updated: Tue Apr 16 11:01:29 2024 UTC