Skip to content

Add a settimeout() method to FakeSocket - #2810

Merged
nateprewitt merged 1 commit into
boto:developfrom
sethmlarson:patch-1
Nov 10, 2022
Merged

Add a settimeout() method to FakeSocket#2810
nateprewitt merged 1 commit into
boto:developfrom
sethmlarson:patch-1

Conversation

@sethmlarson

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

@nateprewitt nateprewitt left a comment

Copy link
Copy Markdown
Contributor

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

codecov-commenter commented Nov 10, 2022

Copy link
Copy Markdown

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