Skip to content

Commit

Permalink
- 优化 Subscrible 取消订阅线程等待;
Browse files Browse the repository at this point in the history
  • Loading branch information
28810 authored and 28810 committed May 6, 2020
1 parent f38a921 commit 2b4f1e5
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/CSRedisCore/CSRedisClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1620,7 +1620,7 @@ public void Dispose()
{
foreach (var subscr in this.Subscrs)
{
try { subscr.conn.Value.Unsubscribe(); } catch { }
//try { subscr.conn.Value.Unsubscribe(); } catch { }
try { subscr.conn.Value.ReceiveTimeout = (subscr.conn.Pool as RedisClientPool)._policy._syncTimeout; } catch { }
subscr.conn.Pool.Return(subscr.conn, true);
}
Expand Down Expand Up @@ -1811,7 +1811,7 @@ public void Dispose()
{
foreach (var conn in this.RedisConnections)
{
try { conn.Value.PUnsubscribe(); } catch { }
//try { conn.Value.PUnsubscribe(); } catch { }
try { conn.Value.ReceiveTimeout = (conn.Pool as RedisClientPool)._policy._syncTimeout; } catch { }
conn.Pool.Return(conn, true);
}
Expand Down
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.6.2</Version>
<Version>3.6.3</Version>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
<PackageProjectUrl>https://github.com/2881099/csredis</PackageProjectUrl>
<Description>CSRedis 是 redis.io 官方推荐库,支持 redis-trib集群、哨兵、私有分区与连接池管理技术,简易 RedisHelper 静态类。</Description>
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.6.2</Version>
<Version>3.6.3</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 All @@ -21,7 +21,7 @@
</PropertyGroup>

<ItemGroup Condition="'$(TargetFramework)' == 'netcoreapp31' or '$(TargetFramework)' == 'netstandard2.0'">
<PackageReference Include="Microsoft.Extensions.Caching.Abstractions" Version="3.1.2" />
<PackageReference Include="Microsoft.Extensions.Caching.Abstractions" Version="3.1.3" />
</ItemGroup>
<ItemGroup Condition="'$(TargetFramework)' == 'netcoreapp30'">
<PackageReference Include="Microsoft.Extensions.Caching.Abstractions" Version="3.0.3" />
Expand Down

0 comments on commit 2b4f1e5

Please sign in to comment.