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
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: turchanov at farpost dot com
New email:
PHP Version: OS:

 

 [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: Thu Mar 28 23:01:26 2024 UTC