mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2025-01-31 09:41:18 +02:00
[rh:websockets] Support websockets 14.0+ (#11616)
Some checks failed
Download Tests / Full Download Tests (windows-latest, 3.9) (push) Waiting to run
Download Tests / Full Download Tests (windows-latest, pypy-3.10) (push) Waiting to run
CodeQL / Analyze (python) (push) Failing after 1m17s
Core Tests / Core Tests (ubuntu-latest, 3.10) (push) Failing after 15m18s
Core Tests / Core Tests (ubuntu-latest, 3.11) (push) Failing after 15m16s
Core Tests / Core Tests (ubuntu-latest, 3.12) (push) Failing after 15m17s
Core Tests / Core Tests (ubuntu-latest, 3.13) (push) Failing after 15m15s
Core Tests / Core Tests (ubuntu-latest, pypy-3.10) (push) Successful in 12m40s
Download Tests / Quick Download Tests (push) Has been skipped
Download Tests / Full Download Tests (ubuntu-latest, 3.10) (push) Has been skipped
Download Tests / Full Download Tests (ubuntu-latest, 3.11) (push) Has been skipped
Download Tests / Full Download Tests (ubuntu-latest, 3.12) (push) Has been skipped
Download Tests / Full Download Tests (ubuntu-latest, 3.13) (push) Has been skipped
Download Tests / Full Download Tests (ubuntu-latest, pypy-3.10) (push) Has been skipped
Quick Test / Core Test (push) Successful in 3m22s
Quick Test / Code check (push) Successful in 1m26s
Release (master) / release (push) Has been skipped
Release (master) / publish_pypi (push) Has been skipped
Core Tests / Core Tests (windows-latest, 3.10) (push) Has been cancelled
Core Tests / Core Tests (windows-latest, 3.12) (push) Has been cancelled
Core Tests / Core Tests (windows-latest, 3.13) (push) Has been cancelled
Core Tests / Core Tests (windows-latest, 3.9) (push) Has been cancelled
Core Tests / Core Tests (windows-latest, pypy-3.10) (push) Has been cancelled
Some checks failed
Download Tests / Full Download Tests (windows-latest, 3.9) (push) Waiting to run
Download Tests / Full Download Tests (windows-latest, pypy-3.10) (push) Waiting to run
CodeQL / Analyze (python) (push) Failing after 1m17s
Core Tests / Core Tests (ubuntu-latest, 3.10) (push) Failing after 15m18s
Core Tests / Core Tests (ubuntu-latest, 3.11) (push) Failing after 15m16s
Core Tests / Core Tests (ubuntu-latest, 3.12) (push) Failing after 15m17s
Core Tests / Core Tests (ubuntu-latest, 3.13) (push) Failing after 15m15s
Core Tests / Core Tests (ubuntu-latest, pypy-3.10) (push) Successful in 12m40s
Download Tests / Quick Download Tests (push) Has been skipped
Download Tests / Full Download Tests (ubuntu-latest, 3.10) (push) Has been skipped
Download Tests / Full Download Tests (ubuntu-latest, 3.11) (push) Has been skipped
Download Tests / Full Download Tests (ubuntu-latest, 3.12) (push) Has been skipped
Download Tests / Full Download Tests (ubuntu-latest, 3.13) (push) Has been skipped
Download Tests / Full Download Tests (ubuntu-latest, pypy-3.10) (push) Has been skipped
Quick Test / Core Test (push) Successful in 3m22s
Quick Test / Code check (push) Successful in 1m26s
Release (master) / release (push) Has been skipped
Release (master) / publish_pypi (push) Has been skipped
Core Tests / Core Tests (windows-latest, 3.10) (push) Has been cancelled
Core Tests / Core Tests (windows-latest, 3.12) (push) Has been cancelled
Core Tests / Core Tests (windows-latest, 3.13) (push) Has been cancelled
Core Tests / Core Tests (windows-latest, 3.9) (push) Has been cancelled
Core Tests / Core Tests (windows-latest, pypy-3.10) (push) Has been cancelled
Authored by: coletdjnz
This commit is contained in:
parent
e0f1ae813b
commit
c7316373c0
@ -52,7 +52,7 @@ default = [
|
||||
"pycryptodomex",
|
||||
"requests>=2.32.2,<3",
|
||||
"urllib3>=1.26.17,<3",
|
||||
"websockets>=13.0,<14",
|
||||
"websockets>=13.0",
|
||||
]
|
||||
curl-cffi = [
|
||||
"curl-cffi==0.5.10; os_name=='nt' and implementation_name=='cpython'",
|
||||
|
@ -216,7 +216,9 @@ class SocksWebSocketTestRequestHandler(SocksTestRequestHandler):
|
||||
protocol = websockets.ServerProtocol()
|
||||
connection = websockets.sync.server.ServerConnection(socket=self.request, protocol=protocol, close_timeout=0)
|
||||
connection.handshake()
|
||||
connection.send(json.dumps(self.socks_info))
|
||||
for message in connection:
|
||||
if message == 'socks_info':
|
||||
connection.send(json.dumps(self.socks_info))
|
||||
connection.close()
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user