Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Fix transport retries after close#568

Merged
rytilahti merged 1 commit into
python-kasa:masterpython-kasa/python-kasa:masterfrom
sdb9696:fix_transport_closesdb9696/python-kasa:fix_transport_closeCopy head branch name to clipboard
Dec 5, 2023
Merged

Fix transport retries after close#568
rytilahti merged 1 commit into
python-kasa:masterpython-kasa/python-kasa:masterfrom
sdb9696:fix_transport_closesdb9696/python-kasa:fix_transport_closeCopy head branch name to clipboard

Conversation

@sdb9696

@sdb9696 sdb9696 commented Dec 5, 2023

Copy link
Copy Markdown
Collaborator

Fixes an issue where the transport does not recover after close() is called by the protocol.

Tests are updated to mock the underlying httpx.AsyncClient.post instead of the transport client_post which would now catch the issue.

@codecov

codecov Bot commented Dec 5, 2023

Copy link
Copy Markdown

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (4a00199) 79.50% compared to head (0617508) 79.66%.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #568      +/-   ##
==========================================
+ Coverage   79.50%   79.66%   +0.16%     
==========================================
  Files          36       36              
  Lines        2991     2995       +4     
  Branches      777      779       +2     
==========================================
+ Hits         2378     2386       +8     
+ Misses        541      536       -5     
- Partials       72       73       +1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@rytilahti rytilahti left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixes the issue with dump_devinfo for me, thanks! 👍

@rytilahti rytilahti added the bug Something isn't working label Dec 5, 2023
@rytilahti rytilahti merged commit 01f3827 into python-kasa:master Dec 5, 2023
@sdb9696 sdb9696 deleted the fix_transport_close branch December 6, 2023 19:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.