.NET Core or .NET Framework 4.0+ client for Redis and Redis Sentinel (2.8) and Cluster. Includes both synchronous and asynchronous clients.
2.01k
stars
414
forks
source link
Connect to server timeout :CSRedis.Internal.IO.RedisSocketException #465
Open
songfuchen opened 2 years ago
CSRedis.Internal.IO.RedisSocketException: at CSRedis.CSRedisClient.GetAndExecute (CSRedisCore, Version=3.8.3.0, Culture=neutral, PublicKeyToken=9aa6a3079358d437) at CSRedis.CSRedisClient.ExecuteScalar (CSRedisCore, Version=3.8.3.0, Culture=neutral, PublicKeyToken=9aa6a3079358d437) at CSRedis.CSRedisClient.HMGet (CSRedisCore, Version=3.8.3.0, Culture=neutral, PublicKeyToken=9aa6a3079358d437) at Microsoft.Extensions.Caching.Redis.CSRedisCache.GetAndRefresh (Caching.CSRedis, Version=3.8.3.0, Culture=neutral, PublicKeyToken=321a9fc7b6eef7e4) at Microsoft.Extensions.Caching.Redis.CSRedisCache.Get (Caching.CSRedis, Version=3.8.3.0, Culture=neutral, PublicKeyToken=321a9fc7b6eef7e4) at Microsoft.AspNetCore.Session.DistributedSession.Load (Microsoft.AspNetCore.Session, Version=6.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60)
服务器用的是微软的服务器,项目运行一段时间后就出现异常,查询日志是这个错误,从而导致服务器降级,服务器上redis版本是4.0,跟这个有关系吗? 连接字符串:xxxxxxxxx:6380,password=RKekjWBDuJ8Z=,ssl=True,abortConnect=False,preheat=2500,connectTimeout=300000,idleTimeout=1000,testcluster=false,autoDispose=true,tryit=3 希望作者看到能回复下,跪谢。