StackExchange / StackExchange/StackExchange.Redis
Sometimes happnes RedisConnectionException: SocketClosed by accessing AWS ElasticClache
Nobody has claimed this yet.
- Dominant language
- C#
- Stars
- 6.2k
- Forks
- 1.6k
- Avg merge
- 1d 15h
- Merged PRs (30d)
- 43
Description
Hello.
I am developing some SignalR core web app on .NET Core 3.1.1.
My Application accesses AWS ElasticClache by using StackExchange.Redis (v2.0.593) through Microsoft.AspNetCore.SignalR.StackExchangeRedis (v3.1.1) and sometimes happens RedisConnectionException below (a).
I tried some actions bellow (b), but failed.
Please let me know if you have any good ideas to solve it.
(a)RedisConnectionException Message
2020-06-06 11:02:12.8330|9|ERROR|Microsoft.AspNetCore.SignalR.StackExchangeRedis.RedisHubLifetimeManager|Connection to Redis failed. StackExchange.Redis.RedisConnectionException: SocketClosed (ReadEndOfStream, last-recv: 0) on XXXXXXX.XXXXXX.XX.XXXX.apne1.cache.amazonaws.com:6379/Subscription, Idle/MarkProcessed, last: PING, origin: ReadFromPipe, outstanding: 0, last-read: 0s ago, last-write: 37s ago, keep-alive: 60s, state: ConnectedEstablished, mgr: 9 of 10 available, in: 0, in-pipe: 0, out-pipe: 0, last-heartbeat: 0s ago, last-mbeat: 0s ago, global: 0s ago, v: 2.0.593.37019
(b)My actions
- updated StackExchange.Redis to 2.1.30.38891
- chnage redis paramters of connectTimeout, connectRetry, abortConnect
- change SignalR paramters of StreamBufferCapacity, MaximumReceiveMessageSize
Appreciate any help.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
No source file, test, or entry point is named. Start by reviewing the reported SocketClosed RedisConnectionException and the listed StackExchange.Redis, SignalR, and AWS ElastiCache versions, then compare the attempted connection and SignalR settings. Done means identifying a reproducible cause and a verified resolution for the failure.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- csharp, redis
- Domain
- backend, databases
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 20/100