升级到1.4.0及之后的版本无法连接Azure Redis
RedisClient时会返回异常: Status unavailable, waiting for recovery. The remote certificate is invalid according to the validation procedure: RemoteCertificateNameMismatch
使用1.3.9版本及之前的版本不会出现这个问题
可能因为网络抖动原因导致的神经质。 新功能:增加了延迟断熔机制,有兴趣的可以用源代码。
版本过段时间再发布。
可能因为网络抖动原因导致的神经质。 新功能:增加了延迟断熔机制,有兴趣的可以用源代码。
版本过段时间再发布。
升级到1.5.0之后,连接Azure Redis出现两个新问题:
1.执行以下代码报错(1.4.0之前版本正常) Socket.Write error: Cannot access a closed Stream.
redisClient.UseClientSideCaching(new()
{
……
};
2.跳过上面那步直接使用client,报错 The service is circuit-broken, waiting for recovery. Error: The remote certificate is invalid according to the validation procedure: RemoteCertificateNameMismatch
Error: The remote certificate is invalid according to the validation procedure: RemoteCertificateNameMismatch
这个和证书有关
Error: The remote certificate is invalid according to the validation procedure: RemoteCertificateNameMismatch
这个和证书有关
我查了下,是因为Azure Redis的证书是颁发给 ”*.redis.cache.windows.net“ ,目前默认的证书验证不支持这种证书。 临时解决方案可以通过修改ConnectionStringBuilder里面的CertificateValidation委托解决。 但建议在包里面直接解决。 这个问题在1.3.x版本不存在。