【发布时间】:2016-06-10 14:44:15
【问题描述】:
Spring集成tcp网关可以设置如下:
<!-- Server side -->
<int-ip:tcp-connection-factory id="crLfServer"
type="server"
port="${availableServerSocket}"
single-use="true"
so-timeout="5000"
using-nio="false"
/>
<int-ip:tcp-inbound-gateway id="gatewayCrLf"
connection-factory="crLfServer"
request-channel="serverBytes2StringChannel"
error-channel="errorChannel"
reply-timeout="10000"/>
我的 TCP 服务器运行良好,并在 10 秒内响应。
有时其他重要的批处理会减慢我的服务器处理速度。在此期间,我想动态更改回复超时。
如何在正在运行的服务器中动态更改回复超时?
【问题讨论】: