Skip to content

Conversation

@sdb9696
Copy link
Collaborator

@sdb9696 sdb9696 commented Dec 5, 2023

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
Copy link

codecov bot commented Dec 5, 2023

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.

Copy link
Member

@rytilahti rytilahti left a comment

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