diff options
| author | MHSanaei <ho3ein.sanaei@gmail.com> | 2024-12-16 12:13:01 +0300 |
|---|---|---|
| committer | MHSanaei <ho3ein.sanaei@gmail.com> | 2024-12-16 12:13:01 +0300 |
| commit | 918a2b15331562ec56d7a96816e27069f90dbf3c (patch) | |
| tree | c0701f6df0593ad23cf1e41078a77796038a41c4 /web | |
| parent | 88a17cd22755cc8c22f6214c7ac5b83c44b429ee (diff) | |
XHTTP: Add "hMaxRequestTimes, hKeepAlivePeriod"
Diffstat (limited to 'web')
| -rw-r--r-- | web/assets/js/model/inbound.js | 14 | ||||
| -rw-r--r-- | web/html/xui/form/stream/stream_xhttp.html | 9 |
2 files changed, 13 insertions, 10 deletions
diff --git a/web/assets/js/model/inbound.js b/web/assets/js/model/inbound.js index ae87604e..c5fc0144 100644 --- a/web/assets/js/model/inbound.js +++ b/web/assets/js/model/inbound.js @@ -503,11 +503,12 @@ class xHTTPStreamSettings extends XrayCommonClass { maxConcurrency: "16-32", maxConnections: 0, cMaxReuseTimes: "64-128", - cMaxLifetimeMs: 0 + cMaxLifetimeMs: 0, + hMaxRequestTimes: "800-900", + hKeepAlivePeriod: 0, }, mode = MODE_OPTION.AUTO, - noGRPCHeader = false, - keepAlivePeriod = 45, + noGRPCHeader = false ) { super(); this.path = path; @@ -521,7 +522,6 @@ class xHTTPStreamSettings extends XrayCommonClass { this.xmux = xmux; this.mode = mode; this.noGRPCHeader = noGRPCHeader; - this.keepAlivePeriod = keepAlivePeriod; } addHeader(name, value) { @@ -545,7 +545,6 @@ class xHTTPStreamSettings extends XrayCommonClass { json.xmux, json.mode, json.noGRPCHeader, - json.keepAlivePeriod, ); } @@ -563,11 +562,12 @@ class xHTTPStreamSettings extends XrayCommonClass { maxConcurrency: this.xmux.maxConcurrency, maxConnections: this.xmux.maxConnections, cMaxReuseTimes: this.xmux.cMaxReuseTimes, - cMaxLifetimeMs: this.xmux.cMaxLifetimeMs + cMaxLifetimeMs: this.xmux.cMaxLifetimeMs, + hMaxRequestTimes: this.xmux.hMaxRequestTimes, + hKeepAlivePeriod: this.xmux.hKeepAlivePeriod, }, mode: this.mode, noGRPCHeader: this.noGRPCHeader, - keepAlivePeriod: this.keepAlivePeriod, }; } } diff --git a/web/html/xui/form/stream/stream_xhttp.html b/web/html/xui/form/stream/stream_xhttp.html index faec875d..fc94b211 100644 --- a/web/html/xui/form/stream/stream_xhttp.html +++ b/web/html/xui/form/stream/stream_xhttp.html @@ -27,9 +27,6 @@ <a-select-option v-for="key in MODE_OPTION" :value="key">[[ key ]]</a-select-option> </a-select> </a-form-item> - <a-form-item label='keep-Alive Period'> - <a-input-number v-model.number="inbound.stream.xhttp.keepAlivePeriod"></a-input-number> - </a-form-item> <a-form-item label="Max Concurrent Upload"> <a-input v-model.trim="inbound.stream.xhttp.scMaxConcurrentPosts"></a-input> </a-form-item> @@ -57,6 +54,12 @@ <a-form-item label="Max Lifetime (ms)"> <a-input v-model="inbound.stream.xhttp.xmux.cMaxLifetimeMs"></a-input> </a-form-item> + <a-form-item label="Max Request Times"> + <a-input v-model="inbound.stream.xhttp.xmux.hMaxRequestTimes"></a-input> + </a-form-item> + <a-form-item label='Keep Alive Period'> + <a-input v-model.number="inbound.stream.xhttp.xmux.hKeepAlivePeriod"></a-input> + </a-form-item> <a-form-item label="No gRPC Header"> <a-switch v-model="inbound.stream.xhttp.noGRPCHeader"></a-switch> </a-form-item> |
