Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handle warnings related to connection reset agent #38

Closed
wants to merge 3 commits into from
Closed

Handle warnings related to connection reset agent #38

wants to merge 3 commits into from

Conversation

jayaddison
Copy link
Contributor

This is an attempt to handle the issues raised in #36.

The upstream reset agent handling logic in sqlalchemy appears to have been changing recently and it may be the case that the message appearing from version 1.3.17 is harmless. Even so it seemed worth taking a look to see whether there's a way to reduce the warning noise without causing breakage.

The changes applied here allow tests to pass without errors or warnings for both pytest-flask-sqlalchemy and the flaskdb issue repro repository when using the current master branch of sqlalchemy.

The issue repro repository tests do still report a warning after these changes are applied when using sqlalchemy 1.3.18.

Major caveat: I'm not fully sure of all the interactions between the various database engine, session, connection and transaction objects taking place across all these libraries; I've addressed the symptoms here but it's possible that this isn't the most correct fix.

Addresses / fixes #36.

@jayaddison
Copy link
Contributor Author

Closing this since it isn't a solution that followed from a complete understanding of the problem; hopefully it might still be useful for future reference and/or can be re-opened.

@jayaddison jayaddison closed this Sep 15, 2020
@jayaddison jayaddison deleted the connection-reset-warnings branch September 15, 2020 23:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Warning for every test since SQLAlchemy==1.3.17
1 participant