cnblogs / EnyimMemcachedCore

.NET Memcached client. Available on https://www.nuget.org/packages/EnyimMemcachedCore
Apache License 2.0
162 stars 45 forks source link

Prevent 'Expected magic value...' exception at failover #113

Closed kt81 closed 5 years ago

kt81 commented 5 years ago

(in the case of using binary protocol)

When the peer memcached server is down, the PooledSocket.Read may return empty data without exception so BinaryResponse.DeserializeHeader fails to deserialize response data.