Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix: fix the code about handling
getaddrinfo
when disable ipv6 in
CPython and enable ipv6 in system. Related to #5901; `getaddrinfo` will return an `(int, bytes)` tuple, if CPython could not handle the address family. It will cause a index out of range error in aiohttp.
- Loading branch information
Showing
3 changed files
with
31 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
Fix the error in handling the return value of `getaddrinfo`. | ||
`getaddrinfo` will return an `(int, bytes)` tuple, if CPython could not handle the address family. | ||
It will cause a index out of range error in aiohttp. For example, if user compile CPython with | ||
`--disable-ipv6` option but his system enable the ipv6. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters