From b426bdc9e608c896682e93d040b55040d5c7c830 Mon Sep 17 00:00:00 2001 From: hyh Date: Thu, 31 Jul 2025 19:21:25 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B6=85=E6=97=B6=E6=97=B6=E9=97=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Features/Service/InstrumentProtocolClient.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/X1.DynamicClientCore/Features/Service/InstrumentProtocolClient.cs b/src/X1.DynamicClientCore/Features/Service/InstrumentProtocolClient.cs index 2064d79..0819ba5 100644 --- a/src/X1.DynamicClientCore/Features/Service/InstrumentProtocolClient.cs +++ b/src/X1.DynamicClientCore/Features/Service/InstrumentProtocolClient.cs @@ -113,6 +113,10 @@ namespace X1.DynamicClientCore.Features.Service try { + options = new RequestOptions(); + options.Timeout = 120; + options.EnableCircuitBreaker = false; + _logger.LogInformation("开始启动网络连接,设备编号:{InstrumentNumber}", instrumentNumber); var response = await _dynamicHttpClient.PostAsync>( instrumentNumber,