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>
Wed, 1 Aug 2012 14:33:26 +0000 (16:33 +0200)
commitbbf703c4faeee306c3217d4354846f104275ba29
tree1f0baf5cd463e632d71c6f19c90e3eed196550f0
parent7bd979266a3bca2d9789e19ca8ccb3e0912d743d
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 from.

This patch add a new message when fgets( <socket> ) return false, which
means we could not read from the file pointer. It also get the stream
remote name for debugging purposes.

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