fixed youtube on relay & chatgpt login on VPS exit node

This commit is contained in:
Abolfazl
2026-05-07 21:49:34 +03:30
parent cb4ae98bee
commit b4e23486d1
3 changed files with 34 additions and 16 deletions
+4 -1
View File
@@ -43,7 +43,10 @@ async def read_http_response(
while b"\r\n\r\n" not in raw:
if len(raw) > 65536: # 64 KB header size limit
return 0, {}, b""
chunk = await asyncio.wait_for(reader.read(8192), timeout=8)
# 30s per-read: exit-node chain (Apps Script → VPS → target) needs
# time to fetch + process large responses before sending headers.
# The outer asyncio.wait_for in _relay_single caps total time.
chunk = await asyncio.wait_for(reader.read(8192), timeout=30)
if not chunk:
break
raw += chunk