Ian Stapleton Cordasco
eeafb6ab3a
Merge pull request #6662 from sigmavirus24/fix-tls-floppy
...
Add local TLS server
2024-03-14 06:25:24 -05:00
Ian Stapleton Cordasco
a94e9b5308
Add local TLS server
...
This also adds certificates for testing purposes and files to make it
easy to generate/regenerate them.
This also replaces an existing test of how we utilize our pool manager
such that we don't connect to badssl.com
Finally, this adds additional context parameters for our pool manager to
account for mTLS certificates used by clients to authenticate to a
server.
2024-03-14 06:06:22 -05:00
Ian Stapleton Cordasco
a58d7f2ffb
Merge pull request #6655 from sigmavirus24/fix-tls-floppy
...
Use TLS settings in selecting connection pool
2024-03-11 06:21:59 -05:00
Ian Stapleton Cordasco
c0813a2d91
Use TLS settings in selecting connection pool
...
Previously, if someone made a request with `verify=False` then made a
request where they expected verification to be enabled to the same host,
they would potentially reuse a connection where TLS had not been
verified.
This fixes that issue.
2024-03-06 11:28:13 -06:00
Ian Stapleton Cordasco
eea3bbf9ac
Merge pull request #6562 from amkarn258/issue-6223
...
every chardet package maps to requests.packages.chardet.* package respectively
2024-02-23 06:26:38 -06:00
Ian Stapleton Cordasco
f3f2611d83
Merge pull request #6583 from EFord36/fix-broken-links
...
Fix broken links in docs
2024-02-23 05:30:46 -06:00
Elliot Ford
a0e79bad05
update broken rfc link
...
ietf seems appropriate here - it's used elsewhere in the requets docs in
several places.
2024-02-23 10:26:21 +00:00
Elliot Ford
0a7f662aa7
Make example URL format a literal rather than an actual link
...
The rendered docs 'auto-link' this, which might encourage users to click
the link, even though it doesn't go anywhere.
2024-02-23 10:26:21 +00:00
Elliot Ford
5f1c3c22ff
remove section with broken link to survey
2024-02-23 10:26:21 +00:00
Elliot Ford
541aa80ca3
update urllib3 docs link
2024-02-23 10:26:21 +00:00
Elliot Ford
d3b3399ece
update authors github link
...
Update account link for original author which has changed.
2024-02-23 10:25:50 +00:00
Elliot Ford
0ec2780c29
update broken github pagination link
2024-02-23 10:25:50 +00:00
Ian Stapleton Cordasco
b8be93a721
Merge pull request #6589 from bruceadams/super_len_str_utf-8
...
Enhance `super_len` to count encoded bytes for str
2024-02-22 18:53:25 -06:00
Ian Stapleton Cordasco
3587a5f869
Merge pull request #6644 from sigmavirus24/bug/6643
...
Trim excess leading path separators
2024-02-22 18:49:42 -06:00
Ian Stapleton Cordasco
60389df6d6
Trim excess leading path separators
...
A URL with excess leading / (path-separator)s would cause urllib3 to
attempt to reparse the request-uri as a full URI with a host and port.
This bypasses that logic in ConnectionPool.urlopen by replacing these
leading /s with just a single /.
Closes #6643
2024-02-22 18:36:44 -06:00
Nate Prewitt
382fc2c0c6
Merge pull request #6629 from Tarty/fix-6628-jsondecode-error-not-deserializable
...
Fix #6628 - JSONDecodeError are not deserializable
2024-02-22 12:27:37 -08:00
Nate Prewitt
7a13c041db
Merge pull request #6642 from nateprewitt/drop_python_37
...
Drop support for CPython 3.7
2024-02-20 15:44:43 -08:00
Nate Prewitt
58cea7a728
Drop support for CPython 3.7
2024-02-20 15:37:46 -08:00
Ian Stapleton Cordasco
9439fad038
Merge pull request #6641 from nateprewitt/fix_ci
...
Fix CI
2024-02-20 17:32:57 -06:00
Nate Prewitt
8fa4302322
Update Sphinx to work with latest readthedocs requirements
2024-02-20 15:04:38 -08:00
Nate Prewitt
28855fd43a
Update supported copies of PyPy
...
Dropped support for pypy-3.7 and pypy-3.8 which are no longer maintained by upstream.
Added support for pypy-3.10.
2024-02-20 13:58:26 -08:00
Nate Prewitt
5fc10bf1f5
Fix httpbin pin for test suite
2024-02-20 13:37:25 -08:00
Ian Stapleton Cordasco
46c1a3d8c8
Merge pull request #6640 from nateprewitt/community_docs_cleanup
...
Cleanup defunct links from community docs page
2024-02-20 14:04:33 -06:00
Nate Prewitt
6106a63eb6
Cleanup defunct links from community docs page
2024-02-20 11:58:35 -08:00
Ian Stapleton Cordasco
4f3f189d6b
Merge pull request #6632 from psf/dependabot/github_actions/github/codeql-action-3.24.0
...
Bump github/codeql-action from 3.23.0 to 3.24.0
2024-02-05 20:54:26 -06:00
dependabot[bot]
a5a0e4b587
Bump github/codeql-action from 3.23.0 to 3.24.0
...
Bumps [github/codeql-action](https://github.com/github/codeql-action ) from 3.23.0 to 3.24.0.
- [Release notes](https://github.com/github/codeql-action/releases )
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md )
- [Commits](https://github.com/github/codeql-action/compare/e5f05b81d5b6ff8cfa111c80c22c5fd02a384118...e8893c57a1f3a2b659b6b55564fdfdbbd2982911 )
---
updated-dependencies:
- dependency-name: github/codeql-action
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-02-05 16:38:01 +00:00
Thomas Dehghani
3ff3ff21dd
Fix #6628 - JSONDecodeError are not deserializable
...
requests.exceptions.JSONDecodeError are not deserializable: calling
`pickle.dumps` followed by `pickle.loads` will trigger an error.
This is particularly a problem in a process pool, as an attempt to
decode json on an invalid json document will result in the entire
process pool crashing.
This is due to the MRO of the `requests.exceptions.JSONDecodeError`
class: the `__reduce__` method called when pickling an instance is not
the one from the JSON library parent: two out of three args expected
for instantiation will be dropped, and the instance can't be
deserialised.
By specifying in the class which parent `__reduce__` method should be
called, the bug is fixed as all args are carried over in the resulting
pickled bytes.
2024-01-31 17:13:53 +01:00
Ian Stapleton Cordasco
96b22fa18c
Merge pull request #6619 from psf/dependabot/github_actions/github/codeql-action-3.23.0
...
Bump github/codeql-action from 3.22.11 to 3.23.0
2024-01-08 11:56:01 -06:00
dependabot[bot]
b0e6c9bf85
Bump github/codeql-action from 3.22.11 to 3.23.0
...
Bumps [github/codeql-action](https://github.com/github/codeql-action ) from 3.22.11 to 3.23.0.
- [Release notes](https://github.com/github/codeql-action/releases )
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md )
- [Commits](https://github.com/github/codeql-action/compare/b374143c1149a9115d881581d29b8390bbcbb59c...e5f05b81d5b6ff8cfa111c80c22c5fd02a384118 )
---
updated-dependencies:
- dependency-name: github/codeql-action
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-01-08 17:01:37 +00:00
Ian Stapleton Cordasco
72eccc8dd8
Merge pull request #6612 from miketheman/fix-docs-urls
...
docs: specify sphinx dirhtml builder, use references instead of absolutes
2023-12-23 12:33:48 -06:00
Mike Fiedler
25939d8784
add myself
...
Signed-off-by: Mike Fiedler <miketheman@gmail.com >
2023-12-23 18:15:33 +00:00
Mike Fiedler
bfba9dc68c
docs: replace concrete URLs with references
...
Any development links will now refer back to the generated docs.
Signed-off-by: Mike Fiedler <miketheman@gmail.com >
2023-12-23 18:09:55 +00:00
Mike Fiedler
f23346a9b8
Revert "Merge pull request #6605 from jaikishpai/fix-#6604"
...
This reverts commit 1396eb6f7a , reversing
changes made to e4c821a247 .
2023-12-23 17:36:34 +00:00
Ian Stapleton Cordasco
f3f9784419
Merge pull request #6613 from miketheman/add-socks-label
...
docs: add label to socks heading
2023-12-23 11:24:56 -06:00
Mike Fiedler
b5bd0f14cc
docs: add label to socks heading
...
When trying to link via intersphinx, a label must be used.
Otherwise a full URL is required, which is less desirable.
Signed-off-by: Mike Fiedler <miketheman@gmail.com >
2023-12-23 17:17:34 +00:00
Mike Fiedler
242d3113c0
docs: specify sphinx dirhtml builder
...
With the requirement of a configuration file, the default builder
of `dirhtml` that RTD used to use is no longer specified.
This leads to URLs ending in `.html` now, which
breaks other exisitng references.
Refs: #6603
Refs: https://docs.readthedocs.io/en/stable/config-file/v2.html#sphinx-builder
Refs: https://www.sphinx-doc.org/en/master/usage/builders/index.html#sphinx.builders.dirhtml.DirectoryHTMLBuilder
Signed-off-by: Mike Fiedler <miketheman@gmail.com >
2023-12-23 16:16:50 +00:00
Nate Prewitt
1396eb6f7a
Merge pull request #6605 from jaikishpai/fix-#6604
...
fix for ##6604
2023-12-19 22:17:55 -08:00
Nate Prewitt
e4c821a247
Merge pull request #6607 from psf/dependabot/github_actions/github/codeql-action-3.22.11
...
Bump github/codeql-action from 2.22.1 to 3.22.11
2023-12-18 09:30:42 -08:00
dependabot[bot]
421b1f1757
Bump github/codeql-action from 2.22.1 to 3.22.11
...
Bumps [github/codeql-action](https://github.com/github/codeql-action ) from 2.22.1 to 3.22.11.
- [Release notes](https://github.com/github/codeql-action/releases )
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md )
- [Commits](https://github.com/github/codeql-action/compare/fdcae64e1484d349b3366718cdfef3d404390e85...b374143c1149a9115d881581d29b8390bbcbb59c )
---
updated-dependencies:
- dependency-name: github/codeql-action
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-12-18 16:39:47 +00:00
Jaikish Pai
1447bccc05
fix for ##6604
2023-12-17 22:34:30 +01:00
Ian Stapleton Cordasco
3b5978fc5d
Merge pull request #6592 from atatuzuner61/bug/6584
...
"TOO_EARLY" type definition for status code 425
2023-12-16 14:24:02 -06:00
Ian Stapleton Cordasco
1ddf014f47
Merge pull request #6600 from MestreLion/MestreLion-connection-timeout-note
...
Add note on connection timeout being larger than specified. Fix #5773
2023-12-16 07:30:18 -06:00
Ian Stapleton Cordasco
92f9e431c9
Update docs/user/advanced.rst
...
Add note about wall clock too
2023-12-16 07:29:50 -06:00
Ian Stapleton Cordasco
951dd15fa6
Update docs/user/advanced.rst
...
fix indentation for note so it renders properly
2023-12-16 07:26:23 -06:00
Ian Stapleton Cordasco
51d0d83eaf
Merge pull request #6603 from nsoranzo/rtd_config
...
Add now mandatory readthedocs config file
2023-12-16 07:24:37 -06:00
Nicola Soranzo
c7c2ebf1a7
Add now mandatory readthedocs config file
...
Docs builds currently fail with:
```
Problem in your project's configuration. No default configuration file found at repository's root. See https://docs.readthedocs.io/en/stable/config-file/
```
See e.g. https://readthedocs.org/projects/requests/builds/22842479/
2023-12-15 20:59:56 +00:00
Rodrigo Silva
a64f32ba45
Add note on connection timeout being larger than specified. Fix #5773
...
On servers with multiple IPs, such as IPv4 and IPv6, `urllib3` tries each address sequentially until one successfully connects, using the specified timeout for _each_ attempt, leading to a total connection timeout that is a _multiple_ of the requested time.
2023-12-13 10:05:12 -03:00
Nate Prewitt
a25fde6989
Merge pull request #6599 from psf/dependabot/github_actions/actions/setup-python-5.0.0
2023-12-11 08:11:07 -08:00
dependabot[bot]
ba67dc8dcc
Bump actions/setup-python from 4.7.0 to 5.0.0
...
Bumps [actions/setup-python](https://github.com/actions/setup-python ) from 4.7.0 to 5.0.0.
- [Release notes](https://github.com/actions/setup-python/releases )
- [Commits](https://github.com/actions/setup-python/compare/61a6322f88396a6271a6ee3565807d608ecaddd1...0a5c61591373683505ea898e09a3ea4f39ef2b9c )
---
updated-dependencies:
- dependency-name: actions/setup-python
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-12-11 16:07:15 +00:00
Nate Prewitt
769bc3ae5c
Merge pull request #6596 from psf/fix-autoclose-automtaion
...
Update close-issues.yml
2023-12-01 09:18:02 -08:00