1
0
Fork 0
mirror of https://github.com/yt-dlp/yt-dlp.git synced 2025-03-09 12:50:23 -05:00

does this resolve unclosed socket?

This commit is contained in:
coletdjnz 2024-05-18 12:48:50 +12:00
parent 3350bdeb87
commit 018acbb93c
No known key found for this signature in database
GPG key ID: 91984263BB39894A

View file

@ -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}')