Commit graph

33 commits

Author SHA1 Message Date
coletdjnz
86b32ee0da
Merge remote-tracking branch 'upstream/master' into networking/websockets-http-proxy
# Conflicts:
#	yt_dlp/networking/_websockets.py
2024-07-14 11:34:49 +12:00
coletdjnz
cdd8e33141
Merge without githooks 2024-07-14 11:33:01 +12:00
coletdjnz
150ecc45d9
[networking] Add legacy_ssl request extension (#10448)
Supported by Urllib, Requests and Websockets request handlers. Ignored by CurlCFFI.

Also added couple cookie-related tests.

Authored by: coletdjnz
2024-07-14 11:22:43 +12:00
bashonly
6aaf96a3d6
[cleanup] Misc (#10075)
Closes #10303
Authored by: bashonly, seproDev, jucor, c-basalt

Co-authored-by: sepro <4618135+seproDev@users.noreply.github.com>
Co-authored-by: Julien Cornebise <julien@cornebise.com>
Co-authored-by: c-basalt <117849907+c-basalt@users.noreply.github.com>
2024-07-01 22:51:27 +00:00
bashonly
556aa5161e
Merge branch 'master' into networking/websockets-http-proxy 2024-06-12 02:01:26 -05:00
sepro
add96eb9f8
[cleanup] Add more ruff rules (#10149)
Authored by: seproDev

Reviewed-by: bashonly <88596187+bashonly@users.noreply.github.com>
Reviewed-by: Simon Sawicki <contact@grub4k.xyz>
2024-06-12 01:09:58 +02:00
coletdjnz
aef80ad64c
Update yt_dlp/networking/_websockets.py
Co-authored-by: pukkandan <pukkandan.ytdlp@gmail.com>
2024-06-03 11:20:02 +12:00
coletdjnz
f1f1af9c67
Always send to stdout 2024-05-19 10:49:24 +12:00
coletdjnz
72bb0969bf
Missed something 2024-05-19 10:18:47 +12:00
coletdjnz
976cec10c9
Fix debug traffic for websockets proxy 2024-05-19 10:17:28 +12:00
coletdjnz
6dcc99ee4a
Apply for legacy framing too for safe measure 2024-05-18 18:24:27 +12:00
coletdjnz
c2718e7ff5
misc cleanup 2024-05-18 18:07:29 +12:00
coletdjnz
0b255c531b
catch fix 2024-05-18 17:34:00 +12:00
coletdjnz
4cfce3b22f
minor fix 2024-05-18 17:28:25 +12:00
coletdjnz
d274eb1f53
Only use SSLTransport where tls-in-tls will be used 2024-05-18 17:18:21 +12:00
coletdjnz
8c0d5041df
revert 2024-05-18 15:54:38 +12:00
coletdjnz
44da2e1323
reset socket timeout before handing over to websockets 2024-05-18 15:43:43 +12:00
coletdjnz
b4e0d5ac16
Disable apply_mask C implementation 2024-05-18 14:38:44 +12:00
coletdjnz
c01179b581
cleanup 2024-05-18 13:54:01 +12:00
coletdjnz
101d9f53b4
always use WebSocketsSSLTransport if available
this ensures it is used for both sockets in TLS-in-TLS
2024-05-18 13:46:55 +12:00
coletdjnz
3350bdeb87
refactoring and add http erro test 2024-05-18 12:23:22 +12:00
coletdjnz
0efd83b31a
patch SSLTransport to return b'' instead of 0 as EOF
Websockets only treats b'' as EOF
2024-05-18 11:41:36 +12:00
coletdjnz
0d520bc008
misc fixes 2024-05-03 17:09:26 +12:00
coletdjnz
8ea52ec344
Update yt_dlp/networking/_websockets.py 2024-05-03 17:04:33 +12:00
coletdjnz
833862cfbc
misc cleanup 2024-04-06 15:50:48 +13:00
coletdjnz
01fe8e8fa6
Handle urllib3 not being available 2024-04-06 15:40:29 +13:00
coletdjnz
3999a510f7
Working websockets HTTP/S proxy 2024-04-06 15:14:59 +13:00
coletdjnz
39a45d48f9
somewhat working implementation 2024-03-31 22:04:21 +13:00
coletdjnz
e5d4f11104
[rh:websockets] Workaround race condition causing issues on PyPy (#9514)
Authored by: coletdjnz
2024-03-23 11:27:10 +13:00
coletdjnz
52f5be1f1e
[rh:curlcffi] Add support for curl_cffi
Authored by: coletdjnz, Grub4K, pukkandan, bashonly

Co-authored-by: Simon Sawicki <contact@grub4k.xyz>
Co-authored-by: pukkandan <pukkandan.ytdlp@gmail.com>
Co-authored-by: bashonly <bashonly@protonmail.com>
2024-03-16 23:15:11 -05:00
coletdjnz
0085e2bab8
[rh] Remove additional logging handlers on close (#9032)
Fixes https://github.com/yt-dlp/yt-dlp/issues/8922

Authored by: coletdjnz
2024-02-18 11:32:34 +13:00
Simon Sawicki
f9fb3ce86e
[cleanup] Misc (#8598)
Authored by: bashonly, pukkandan, seproDev, Grub4K

Co-authored-by: bashonly <bashonly@protonmail.com>
Co-authored-by: pukkandan <pukkandan.ytdlp@gmail.com>
Co-authored-by: sepro <4618135+seproDev@users.noreply.github.com>
2023-12-30 22:27:36 +01:00
coletdjnz
ccfd70f4c2
[rh:websockets] Migrate websockets to networking framework (#7720)
* Adds a basic WebSocket framework
* Introduces new minimum `websockets` version of 12.0
* Deprecates `WebSocketsWrapper`

Fixes https://github.com/yt-dlp/yt-dlp/issues/8439

Authored by: coletdjnz
2023-11-20 08:04:04 +00:00