瀏覽代碼

XHTTP: Add "scMaxBufferedPosts"

mhsanaei 3 月之前
父節點
當前提交
36b0289bc6
共有 2 個文件被更改,包括 6 次插入6 次删除
  1. 4 4
      web/assets/js/model/inbound.js
  2. 2 2
      web/html/xui/form/stream/stream_xhttp.html

+ 4 - 4
web/assets/js/model/inbound.js

@@ -494,7 +494,7 @@ class xHTTPStreamSettings extends XrayCommonClass {
         path = '/',
         host = '',
         headers = [],
-        scMaxConcurrentPosts = "100",
+        scMaxBufferedPosts = 30,
         scMaxEachPostBytes = "1000000",
         scMinPostsIntervalMs = "30",
         noSSEHeader = false,
@@ -514,7 +514,7 @@ class xHTTPStreamSettings extends XrayCommonClass {
         this.path = path;
         this.host = host;
         this.headers = headers;
-        this.scMaxConcurrentPosts = scMaxConcurrentPosts;
+        this.scMaxBufferedPosts = scMaxBufferedPosts;
         this.scMaxEachPostBytes = scMaxEachPostBytes;
         this.scMinPostsIntervalMs = scMinPostsIntervalMs;
         this.noSSEHeader = noSSEHeader;
@@ -537,7 +537,7 @@ class xHTTPStreamSettings extends XrayCommonClass {
             json.path,
             json.host,
             XrayCommonClass.toHeaders(json.headers),
-            json.scMaxConcurrentPosts,
+            json.scMaxBufferedPosts,
             json.scMaxEachPostBytes,
             json.scMinPostsIntervalMs,
             json.noSSEHeader,
@@ -553,7 +553,7 @@ class xHTTPStreamSettings extends XrayCommonClass {
             path: this.path,
             host: this.host,
             headers: XrayCommonClass.toV2Headers(this.headers, false),
-            scMaxConcurrentPosts: this.scMaxConcurrentPosts,
+            scMaxBufferedPosts: this.scMaxBufferedPosts,
             scMaxEachPostBytes: this.scMaxEachPostBytes,
             scMinPostsIntervalMs: this.scMinPostsIntervalMs,
             noSSEHeader: this.noSSEHeader,

+ 2 - 2
web/html/xui/form/stream/stream_xhttp.html

@@ -27,8 +27,8 @@
             <a-select-option v-for="key in MODE_OPTION" :value="key">[[ key ]]</a-select-option>
         </a-select>
     </a-form-item>
-    <a-form-item label="Max Concurrent Upload">
-        <a-input v-model.trim="inbound.stream.xhttp.scMaxConcurrentPosts"></a-input>
+    <a-form-item label="Max Buffered Upload">
+        <a-input v-model.trim="inbound.stream.xhttp.scMaxBufferedPosts"></a-input>
     </a-form-item>
     <a-form-item label="Max Upload Size (Byte)">
         <a-input v-model.trim="inbound.stream.xhttp.scMaxEachPostBytes"></a-input>