memcached: better error messaging
authorAntoine Musso <hashar@free.fr>
Fri, 13 Jul 2012 16:20:00 +0000 (18:20 +0200)
committerAntoine Musso <hashar@free.fr>
Fri, 13 Jul 2012 16:20:00 +0000 (18:20 +0200)
commitfe6da52a11375c83d86f73bf4725d14acfbf4cbf
tree14ddc2430e0c1ba814da48aaddefa3e98a6f000b
parent59408ef8b582402a4cf9f3e5b17be8ea7cced3c0
memcached: better error messaging

MemcachedClient output a generic error message: "Error parsing memcached
response\n" whenever it is not able to read from the socket. It is also
lacking the remote peer it is reading form.

This patch add a new message when fgets( <socket> ) return false and
attempt to get the remote peer address / port to append to the error
message. Might help us find out which memcached server is wild.

Change-Id: If918e824970aaa8231078e42fd28d31e8dd4e319
includes/objectcache/MemcachedClient.php