mirror of
https://github.com/TeaOSLab/EdgeAdmin.git
synced 2025-11-06 06:40:27 +08:00
集群服务设置增加自动读超时选项
This commit is contained in:
@@ -85,6 +85,7 @@ func (this *IndexAction) RunPost(params struct {
|
|||||||
|
|
||||||
LogRecordServerError bool
|
LogRecordServerError bool
|
||||||
|
|
||||||
|
PerformanceAutoReadTimeout bool
|
||||||
PerformanceAutoWriteTimeout bool
|
PerformanceAutoWriteTimeout bool
|
||||||
PerformanceDebug bool
|
PerformanceDebug bool
|
||||||
|
|
||||||
@@ -142,6 +143,7 @@ func (this *IndexAction) RunPost(params struct {
|
|||||||
config.Log.RecordServerError = params.LogRecordServerError
|
config.Log.RecordServerError = params.LogRecordServerError
|
||||||
|
|
||||||
// 性能
|
// 性能
|
||||||
|
config.Performance.AutoReadTimeout = params.PerformanceAutoReadTimeout
|
||||||
config.Performance.AutoWriteTimeout = params.PerformanceAutoWriteTimeout
|
config.Performance.AutoWriteTimeout = params.PerformanceAutoWriteTimeout
|
||||||
config.Performance.Debug = params.PerformanceDebug
|
config.Performance.Debug = params.PerformanceDebug
|
||||||
|
|
||||||
|
|||||||
@@ -92,11 +92,18 @@
|
|||||||
|
|
||||||
<h4>性能</h4>
|
<h4>性能</h4>
|
||||||
<table class="ui table definition selectable">
|
<table class="ui table definition selectable">
|
||||||
|
<tr>
|
||||||
|
<td class="title">自动读数据超时</td>
|
||||||
|
<td>
|
||||||
|
<checkbox name="performanceAutoReadTimeout" v-model="config.performance.autoReadTimeout"></checkbox>
|
||||||
|
<p class="comment">从客户端读取数据时自动设置超时时间,如果超时,则自动视为慢连接,并关闭网络连接;此为专业选项,请在专家指导下进行修改。</p>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td class="title">自动写数据超时</td>
|
<td class="title">自动写数据超时</td>
|
||||||
<td>
|
<td>
|
||||||
<checkbox name="performanceAutoWriteTimeout" v-model="config.performance.autoWriteTimeout"></checkbox>
|
<checkbox name="performanceAutoWriteTimeout" v-model="config.performance.autoWriteTimeout"></checkbox>
|
||||||
<p class="comment">向客户端发送数据时自动设置超时时间,如果超时,则自动视为慢连接,并关闭网络连接。</p>
|
<p class="comment">向客户端发送数据时自动设置超时时间,如果超时,则自动视为慢连接,并关闭网络连接;此为专业选项,请在专家指导下进行修改。</p>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
|
|||||||
Reference in New Issue
Block a user