Skip to content

Add a settimeout() method to FakeSocket #2810

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

Merged
merged 1 commit into from
Nov 10, 2022

Conversation

sethmlarson
Copy link
Contributor

As a part of urllib3 v2.0 we changed how HTTPConnectionPools interact with inner HTTPConnection objects, mostly to remove manipulation of inner state like the socket. Instead now the HTTPConnection calls settimeout() on it's own socket.

We also run botocore in our integration tests, and this change caused a failure where FakeSocket didn't have the settimeout method. This PR is upstreaming the patch we have committed to our repository.

Copy link
Contributor

@nateprewitt nateprewitt left a comment

Choose a reason for hiding this comment

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

Looks good to me, thanks @sethmlarson!

@codecov-commenter
Copy link

codecov-commenter commented Nov 10, 2022

Codecov Report

Base: 93.45% // Head: 93.45% // No change to project coverage 👍

Coverage data is based on head (4445e01) compared to base (fcec023).
Patch has no changes to coverable lines.

Additional details and impacted files
@@           Coverage Diff            @@
##           develop    #2810   +/-   ##
========================================
  Coverage    93.45%   93.45%           
========================================
  Files           63       63           
  Lines        13298    13298           
========================================
  Hits         12427    12427           
  Misses         871      871           

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

@nateprewitt nateprewitt merged commit e2b9b37 into boto:develop Nov 10, 2022
aws-sdk-python-automation added a commit that referenced this pull request Nov 11, 2022
* release-1.29.8:
  Bumping version to 1.29.8
  Update to latest partitions and endpoints
  Update to latest models
  Add a settimeout() method to FakeSocket (#2810)
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.

3 participants