mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2026-04-28 19:45:52 +00:00
does this resolve unclosed socket?
This commit is contained in:
parent
3350bdeb87
commit
018acbb93c
@ -341,4 +341,5 @@ def create_http_connect_connection(
|
|||||||
return conn.sock
|
return conn.sock
|
||||||
else:
|
else:
|
||||||
conn.close()
|
conn.close()
|
||||||
|
response.close()
|
||||||
raise ProxyError(f'Got HTTP Error {response.status} with CONNECT: {response.reason}')
|
raise ProxyError(f'Got HTTP Error {response.status} with CONNECT: {response.reason}')
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user