HTTP 探测改为填写网址,缺本机引擎时立刻失败
HTTP 模式不再单独填端口。完整网址沿用其中的协议、端口和路径;只写主机名或 IP 时按 http 和 80 端口。超时默认改为 5000 毫秒。本机找不到或启动不了 netquality-reflector 时直接说明原因,并建议改用远程节点,不再记成一次全部失败。 Co-authored-by: yanjiu0721 <yanjiu0721@users.noreply.github.com>
This commit is contained in:
1 parent
846e40c023
commit
918ec8f190
20 files changed
+807
-131
No files matched your search
@@ -119,6 +119,11 @@ class ProbeLoop {
|
||||
if (!countsAfterStop(outcome, cancelled: cancelled())) {
|
||||
break;
|
||||
}
|
||||
if (request.profileId == 'http' &&
|
||||
outcome != null &&
|
||||
isLocalHttpHelperFailure(outcome)) {
|
||||
throw LocalHttpHelperException(outcome.note);
|
||||
}
|
||||
var commit = <Outcome>[outcome!];
|
||||
if (_usesDatagram(request.profileId) && _picker != null) {
|
||||
_ledger ??= SelectionLedger(_picker!.candidates.length);
|
||||
|
||||
Reference in new issue
Block a user