Occassional socketexception when using Azure Redis

Hi,

In case others are experiencing a similar problem with occassional connection drop to Azure Redis, we have found a workaround that works in our case which was to disable SSL in the connection string.

Error was: »An existing connection was forcibly closed by the remote host«
Workaround:
***@subdomain.redis.cache.windows.net?ssl=true => ***@subdomain.redis.cache.windows.net:6379?ssl=false

This workaround followed the solution mythz provided in version 4.0.55, where the connection drop due to NOAUTH was handled with auto-reconnect. So we had a way to reconnect but still had to figure out why it happens. The original thread is here

Hope this helps!

2 Likes