Skip to content

Commit

Permalink
- 优化 服务器主动断开连接后,设置 idleTimeout 参数仍然会卡数秒 #272
Browse files Browse the repository at this point in the history
  • Loading branch information
28810 authored and 28810 committed Mar 23, 2020
1 parent 164d7fe commit 96bf51a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/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.5.1</Version>
<Version>3.5.2</Version>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
<PackageProjectUrl>https://github.com/2881099/csredis</PackageProjectUrl>
<Description>CSRedis 是 redis.io 官方推荐库,支持 redis-trib集群、哨兵、私有分区与连接池管理技术,简易 RedisHelper 静态类。</Description>
Expand Down
2 changes: 1 addition & 1 deletion src/RedisClientPool.cs
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@ public void OnDestroy(RedisClient obj)
{
if (obj != null)
{
if (obj.IsConnected) try { obj.Quit(); } catch { }
//if (obj.IsConnected) try { obj.Quit(); } catch { } 此行会导致,服务器主动断开后,执行该命令超时停留10-20秒
try { obj.Dispose(); } catch { }
}
}
Expand Down

0 comments on commit 96bf51a

Please sign in to comment.