PHP mysqlnd doesn't activate TCP keep-alive when connecting to a server

 [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