Skip to content

Commit

Permalink
v3.8.668 fix: XPending bug #457
Browse files Browse the repository at this point in the history
  • Loading branch information
2881099 committed Sep 6, 2022
1 parent 266b9a9 commit 5908252
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/CSRedisCore/CSRedisCore.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<AssemblyName>CSRedisCore</AssemblyName>
<PackageId>CSRedisCore</PackageId>
<RootNamespace>CSRedisCore</RootNamespace>
<Version>3.8.666</Version>
<Version>3.8.668</Version>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
<PackageProjectUrl>https://github.com/2881099/csredis</PackageProjectUrl>
<Description>CSRedis 是 redis.io 官方推荐库,支持 redis-trib集群、哨兵、私有分区与连接池管理技术,简易 RedisHelper 静态类。</Description>
Expand Down
9 changes: 9 additions & 0 deletions src/CSRedisCore/Internal/ObjectPool/ObjectPool.cs
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,15 @@ private void CheckAvailable(int interval)
try
{
try
{
Policy.OnCheckAvailable(conn);
break;
}
catch
{
conn.ResetValue();
}
if (Policy.OnCheckAvailable(conn) == false) throw new Exception("CheckAvailable 应抛出异常,代表仍然不可用。");
break;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<AssemblyName>Caching.CSRedis</AssemblyName>
<PackageId>Caching.CSRedis</PackageId>
<RootNamespace>Caching.CSRedis</RootNamespace>
<Version>3.8.666</Version>
<Version>3.8.668</Version>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
<PackageProjectUrl>https://github.com/2881099/csredis/tree/master/src/Microsoft.Extensions.Caching.CSRedis/README.md</PackageProjectUrl>
<Description>分布式缓存 CSRedisCore 实现 Microsoft.Extensions.Caching</Description>
Expand Down

0 comments on commit 5908252

Please sign in to comment.