2024-10-30 13:37:34 +08:00

41 lines
2.3 KiB
XML
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?xml version="1.0" encoding="UTF-8"?>
<!-- 消息总线配置文件 -->
<!-- 注意:若修改端口,请勿使用 602x 号段,以防与消息总线内部其他端口号冲突 -->
<root>
<!--
auto_zip_size自动压缩默认阈值单位Byte若代码中通讯器构造没有指定阈值则使用本设置值
大于等于0从通讯器以 EN_MB_ZIP_AUTO 的方式发送消息时,
长度大于等于本参数的消息将被压缩,否则不压缩。
小于0默认不压缩除非使用 EN_MB_ZIP_ENABLE 指定开启压缩。
非法值使用10240。
print_zip_info是否打印压缩调试信息压缩前大小、压缩后大小默认false。
-->
<net_msg_bus_api auto_zip_size="4096" print_zip_info="false"/>
<!--
h2h_port主机间通讯接收端绑定的TCP端口默认值6021。
h2h_rt_timeout: 域内重传超时时间即网络故障超时时间单位ms。
减少此值可以使网络故障判断变得灵敏,加快网络故障时的网络切换和重连,
但过小,可能导致不必要的网络切换和重连,并可能导致丢失消息。
最小值1000设定值小于最小值则使用最小值。
最大值30000设定值大于最大值则使用最大值。
非法值即非数字使用默认值3000。
-->
<net_msg_bus h2h_port="6021" h2h_rt_timeout="3000"/>
<!--
r2r_port域间转发程序间通讯接收端绑定的TCP端口默认值6022。
r2r_rt_timeout: 域间重传超时时间即网络故障超时时间单位ms。
减少此值可以使网络故障判断变得灵敏,加快网络故障时的网络切换和重连,
但过小,可能导致不必要的网络切换和重连,并可能导致丢失消息。
最小值2000设定值小于最小值则使用最小值。
最大值30000设定值大于最大值则使用最大值。
非法值即非数字使用默认值5000。
-->
<net_msg_bus_relay r2r_port="6022" r2r_rt_timeout="5000"/>
</root>