Skip to content
This repository has been archived by the owner on Feb 21, 2023. It is now read-only.

Frequent connection errors #1281

Closed
Dreamsorcerer opened this issue Jan 28, 2022 · 5 comments
Closed

Frequent connection errors #1281

Dreamsorcerer opened this issue Jan 28, 2022 · 5 comments
Labels

Comments

@Dreamsorcerer
Copy link
Contributor

Dreamsorcerer commented Jan 28, 2022

We are now getting frequent connection errors in the CI for aiohttp-session for 2.0.1. Doesn't seem to be a problem with 2.0.0.

Any ideas on what is happening there would be great:
aio-libs/aiohttp-session#652

@Andrew-Chen-Wang
Copy link
Collaborator

nothing conn wise should have changed. Unfortunately, I'm a little busy with midterms and migrating aioredis to Redis-py with RedisLabs. I will come back to this once things have settled over there. Sorry!

@seandstewart
Copy link
Collaborator

Seems like there were a few changes around reading and parsing responses, no idea if that could be the issue, but it's a place to start.

v2.0.0...v2.0.1

@Dreamsorcerer
Copy link
Contributor Author

Dreamsorcerer commented Feb 4, 2022

Thanks, I've found it: v2.0.0...v2.0.1#diff-6d3e65633ef76c2cc5e938736e2b2190317629f27f99f24384f4f1def6bd151dR10

Not sure if you want to consider reverting that change or not, but the conftest has some retry logic after catching ConnectionError. I've fixed it by referring to the redis one. I'd consider renaming it either way though, to avoid clashing with the builtin (RedisConnectionError or something).

@seandstewart
Copy link
Collaborator

Great - thanks for isolating the issue.

This is one of those chicken-egg scenarios where this exception is actually mimicking redis-py's (questionable) implementation.

An additional option would be to have our connection error inherent from the builtin, which feels sensible to me.

@Dreamsorcerer
Copy link
Contributor Author

That's what it did, the changelog shows the inheritance was removed. Appears to be this PR: #1129

I'll leave you to decide if that change should be reverted or not.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants