Skip to content

Commit

Permalink
- [server] increase retry interval to 5s
Browse files Browse the repository at this point in the history
- [plugin/http] increase client timeout to 20s
  • Loading branch information
grqx committed Dec 27, 2024
1 parent b6f96c0 commit 545c4c1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion plugin/yt_dlp_plugins/extractor/getpot_bgutil_http.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ def _get_pot(self, client: str, ydl: YoutubeDL, visitor_data=None, data_sync_id=
'data_sync_id': data_sync_id,
'proxy': proxy,
}).encode(), headers={'Content-Type': 'application/json'},
extensions={'timeout': 12.5}, proxies={'all': None}))
extensions={'timeout': 20}, proxies={'all': None}))
except Exception as e:
raise RequestError(
f'Error reaching POST /get_pot (caused by {e!s})') from e
Expand Down
2 changes: 1 addition & 1 deletion server/src/session_manager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ export class SessionManager {
};
}
await new Promise((resolve) =>
setTimeout(resolve, 1500),
setTimeout(resolve, 5000),
);
}
}
Expand Down

0 comments on commit 545c4c1

Please sign in to comment.