Skip to content

Commit 4c2ba6a

Browse files
committed
XHTTP: Add "scMaxBufferedPosts"
1 parent 0abd0be commit 4c2ba6a

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

web/assets/js/model/inbound.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -494,7 +494,7 @@ class xHTTPStreamSettings extends XrayCommonClass {
494494
path = '/',
495495
host = '',
496496
headers = [],
497-
scMaxConcurrentPosts = "100",
497+
scMaxBufferedPosts = "30",
498498
scMaxEachPostBytes = "1000000",
499499
scMinPostsIntervalMs = "30",
500500
noSSEHeader = false,
@@ -514,7 +514,7 @@ class xHTTPStreamSettings extends XrayCommonClass {
514514
this.path = path;
515515
this.host = host;
516516
this.headers = headers;
517-
this.scMaxConcurrentPosts = scMaxConcurrentPosts;
517+
this.scMaxBufferedPosts = scMaxBufferedPosts;
518518
this.scMaxEachPostBytes = scMaxEachPostBytes;
519519
this.scMinPostsIntervalMs = scMinPostsIntervalMs;
520520
this.noSSEHeader = noSSEHeader;
@@ -537,7 +537,7 @@ class xHTTPStreamSettings extends XrayCommonClass {
537537
json.path,
538538
json.host,
539539
XrayCommonClass.toHeaders(json.headers),
540-
json.scMaxConcurrentPosts,
540+
json.scMaxBufferedPosts,
541541
json.scMaxEachPostBytes,
542542
json.scMinPostsIntervalMs,
543543
json.noSSEHeader,
@@ -553,7 +553,7 @@ class xHTTPStreamSettings extends XrayCommonClass {
553553
path: this.path,
554554
host: this.host,
555555
headers: XrayCommonClass.toV2Headers(this.headers, false),
556-
scMaxConcurrentPosts: this.scMaxConcurrentPosts,
556+
scMaxBufferedPosts: this.scMaxBufferedPosts,
557557
scMaxEachPostBytes: this.scMaxEachPostBytes,
558558
scMinPostsIntervalMs: this.scMinPostsIntervalMs,
559559
noSSEHeader: this.noSSEHeader,

web/html/xui/form/stream/stream_xhttp.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@
2727
<a-select-option v-for="key in MODE_OPTION" :value="key">[[ key ]]</a-select-option>
2828
</a-select>
2929
</a-form-item>
30-
<a-form-item label="Max Concurrent Upload">
31-
<a-input v-model.trim="inbound.stream.xhttp.scMaxConcurrentPosts"></a-input>
30+
<a-form-item label="Max Buffered Upload">
31+
<a-input v-model.trim="inbound.stream.xhttp.scMaxBufferedPosts"></a-input>
3232
</a-form-item>
3333
<a-form-item label="Max Upload Size (Byte)">
3434
<a-input v-model.trim="inbound.stream.xhttp.scMaxEachPostBytes"></a-input>

0 commit comments

Comments
 (0)