diff options
author | Dan Hemberger <846186+hemberger@users.noreply.github.com> | 2023-04-23 04:41:23 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-23 04:41:23 (GMT) |
commit | e38bebb9ee805df6848f42845e71c8da8a821ad3 (patch) | |
tree | 312191c65d55298bcab47e335ff1b82bddf5f4c3 /Lib/typing.py | |
parent | 0fd38917582aae0728e20d8a641e56d9be9270c7 (diff) | |
download | cpython-e38bebb9ee805df6848f42845e71c8da8a821ad3.zip cpython-e38bebb9ee805df6848f42845e71c8da8a821ad3.tar.gz cpython-e38bebb9ee805df6848f42845e71c8da8a821ad3.tar.bz2 |
gh-81403: Fix for CacheFTPHandler in urllib (#13951)
bpo-37222: Fix for CacheFTPHandler in urllib
A call to FTP.ntransfercmd must be followed by FTP.voidresp to clear
the "end transfer" message. Without this, the client and server get
out of sync, which will result in an error if the FTP instance is
reused to open a second URL. This scenario occurs for even the most
basic usage of CacheFTPHandler.
Reverts the patch merged as a resolution to bpo-16270 and adds a test
case for the CacheFTPHandler in test_urllib2net.py.
Co-authored-by: Senthil Kumaran <senthil@python.org>
Diffstat (limited to 'Lib/typing.py')
0 files changed, 0 insertions, 0 deletions