Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature request] 并行请求时直接返回最快返回的应答 #790

Open
klxyy opened this issue Jan 15, 2024 · 1 comment
Open

[Feature request] 并行请求时直接返回最快返回的应答 #790

klxyy opened this issue Jan 15, 2024 · 1 comment

Comments

@klxyy
Copy link

klxyy commented Jan 15, 2024

希望添加的功能

并行请求时希望可以设置立即返回最快的应答。
在有多个上游服务器时,因某种原因导致偶尔有上游服务器无响应,希望能在并行请求时只要获取到应答则立即返回,而不是等待所有上游服务器都应答后再返回。

@Mrican
Copy link

Mrican commented Jan 23, 2024

forward
转发请求至上游服务器获取应答。
参数: forward upstream [upstream]...
示例: forward 8.8.8.8 tls://8.8.8.8
可配置多个上游。会并发请求,取最先返回的应答。如果超过 3 个上游,会随机选取 3 个上游并发。

详细,请细看wiki

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants