cnblogs / EnyimMemcachedCore

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

Socket/ConnectionReset reset all the time #148

Open jkmu opened 4 years ago

jkmu commented 4 years ago

Hei,

I keep getting Socket/ConnectionReset reset errors all the time when using the client. I am using the IMemcachedClient interface and the data is stored only sometimes when using _memcachedClient.Store(StoreMode.Set, key, value, validFor); with the error message below.

Failed to ExecuteOperation on XXXXXXXX:11211 System.IO.IOException: Failed to write to the socket 'XXXXXXXX:11211'. Error: ConnectionReset at Enyim.Caching.Memcached.ThrowHelper.ThrowSocketWriteError(EndPoint endpoint, SocketError error) at Enyim.Caching.Memcached.PooledSocket.Write(IList1 buffers)`

Any ideas how I can fix this?

Thanks for your help!

HemachandranPM commented 3 years ago

@jkmu did you got the solution. am also getting the same issues.

jkmu commented 3 years ago

@HemachandranPM I did not manage to solve it. I ended up using https://github.com/enyim/Memcached2

HemachandranPM commented 3 years ago

@jkmu Thanks for replying .can you give some solution or idea? what is the alternative you are using? can you some direction pls?

jkmu commented 3 years ago

@HemachandranPM I did not manage to solve it. I ended up using https://github.com/enyim/Memcached2

HemachandranPM commented 3 years ago

got it @jkmu Thanks for ur support .

HemachandranPM commented 3 years ago

@jkmu I am using the same server name but the IP address will change dynamically. it's possible the resolve this Memcache solution. I am using Kubernetes cluster memcache . It auto-scaling when growing memory automatically created a new cluster. so that the IP address will change .

jkmu commented 3 years ago

@HemachandranPM I havent delt with that situation. In my case the Ip adresses are static. Please share if you find a solution.

HemachandranPM commented 3 years ago

@jkmu Memcache value Set and Get working fine. but unable to remove or delete the Memcache.do u have any idea? I need help

HemachandranPM commented 3 years ago

@jkmu I am looking for replay can do needful pls