Last modified: 2012-08-27 14:58:33 UTC
The change https://gerrit.wikimedia.org/r/#/c/15612/ was meant to enhance our memcached debug output. It generates loots of warnings like this: "socket_getpeername(): supplied resource is not a valid Socket resource in /usr/local/apache/common-local/php-1.20wmf8/includes/objectcache/MemcachedClient.php" Was reverted with https://gerrit.wikimedia.org/r/#/c/16658/ . This bug is to remember about investigating change 15612 and enhance it.
I have resent the original patch as https://gerrit.wikimedia.org/r/#/c/16668/
The root cause was trying to get socket metadata of a file pointer which is what the lib uses internally (fsockopen returns a file pointer not a socket resource). Patchset 2 uses stream_socket_get_name() instead. Resetting score to 0 :)
Patch merged in.