C# Net远程断开连接

C# Net远程断开连接,c#,akka.net,C#,Akka.net,我在一个非常简单的客户机-服务器配置中使用Akka.Net。目前还没有什么进展。在来回发送消息大约3或4天后,整个系统似乎处于断开连接状态。重新启动服务后,一切都会重新连接,不会出现任何问题。在此之前,事情将断开,但它似乎立即重新连接 在此期间,两台机器都可以通过网络访问,并且似乎没有任何实际的连接问题 我不知道从这里到哪里去 客户端配置(服务器非常相似) 这个循环一开始是非常零散的,但过了一段时间,它会重复,直到服务重置,再也没有连接 WARN 2015-07-31 07:22:12,994

我在一个非常简单的客户机-服务器配置中使用Akka.Net。目前还没有什么进展。在来回发送消息大约3或4天后,整个系统似乎处于断开连接状态。重新启动服务后,一切都会重新连接,不会出现任何问题。在此之前,事情将断开,但它似乎立即重新连接

在此期间,两台机器都可以通过网络访问,并且似乎没有任何实际的连接问题

我不知道从这里到哪里去

客户端配置(服务器非常相似)

这个循环一开始是非常零散的,但过了一段时间,它会重复,直到服务重置,再也没有连接

WARN  2015-07-31 07:22:12,994 [1584] - Association with remote system akka.tcp://SystemName@Server:8081 has failed; address is now gated for 5000 ms. Reason is: [Disassociated]
ERROR 2015-07-31 07:22:12,994 [1584] - Disassociated
Akka.Remote.EndpointDisassociatedException: Disassociated
   at Akka.Remote.EndpointWriter.PublishAndThrow(Exception reason, LogLevel level)
   at Akka.Remote.EndpointWriter.Unhandled(Object message)
   at Akka.Remote.EndpointWriter.Writing(Object message)
   at Akka.Actor.ActorCell.<>c__DisplayClass3e.<Akka.Actor.IUntypedActorContext.Become>b__3d(Object m)
   at Akka.Actor.ActorBase.AroundReceive(Receive receive, Object message)
   at Akka.Actor.ActorCell.ReceiveMessage(Object message)
   at Akka.Actor.ActorCell.AutoReceiveMessage(Envelope envelope)
   at Akka.Actor.ActorCell.Invoke(Envelope envelope)
DEBUG 2015-07-31 07:22:12,996 [1494] - Disassociated [akka.tcp://SystemName@Client:57284] -> akka.tcp://SystemName@Server:8081
DEBUG 2015-07-31 07:23:13,033 [1469] - Drained buffer with maxWriteCount: 50, fullBackoffCount: 1,smallBackoffCount: 0, noBackoffCount: 0,adaptiveBackoff: 10000
ERROR 2015-07-31 07:24:13,019 [1601] - No response from remote. Handshake timed out or transport failure detector triggered.
DEBUG 2015-07-31 07:24:13,020 [1569] - Disassociated [akka.tcp://SystemName@Client:57284] -> akka.tcp://SystemName@Server:8081
WARN  2015-07-31 07:24:13,020 [1601] - Association with remote system akka.tcp://SystemName@Server:8081 has failed; address is now gated for 5000 ms. Reason is: [Disassociated]
ERROR 2015-07-31 07:24:13,021 [1601] - Disassociated
WARN 2015-07-3107:22:12994[1584]-与远程系统akka的关联。tcp://SystemName@服务器:8081出现故障;地址现在为5000毫秒。原因是:[解除关联]
错误2015-07-3107:22:12994[1584]-解除关联
Akka.Remote.EndpointDisassociatedException:已解除关联
在Akka.Remote.EndpointWriter.PublishAndRow(异常原因,日志级别)
在Akka.Remote.EndpointWriter.Unhandled处(对象消息)
在Akka.Remote.EndpointWriter.Writing(对象消息)
在Akka.Actor.ActorCell.c__显示类3e.b__3d(对象m)
在Akka.Actor.ActorBase.AroundReceive(接收接收,对象消息)
在Akka.Actor.ActorCell.ReceiveMessage(对象消息)
在Akka.Actor.ActorCell.AutoReceiveMessage(信封)
在Akka.Actor.ActorCell.Invoke(信封)
调试2015-07-3107:22:12996[1494]-解除关联[akka。tcp://SystemName@客户:57284]->akka。tcp://SystemName@服务器:8081
调试2015-07-31 07:23:13033[1469]-最大写入计数为50、完全回退计数为1、最小回退计数为0、无回退计数为0、自适应回退计数为10000的耗尽缓冲区
错误2015-07-3107:24:13019[1601]-远程没有响应。握手超时或触发传输故障检测器。
调试2015-07-3107:24:13020[1569]-解除关联[akka。tcp://SystemName@客户:57284]->akka。tcp://SystemName@服务器:8081
警告2015-07-3107:24:13020[1601]-与远程系统akka关联。tcp://SystemName@服务器:8081出现故障;地址现在为5000毫秒。原因是:[解除关联]
错误2015-07-3107:24:13021[1601]-解除关联

在Github上看到了您的问题-可能是与系统运行时间有关的错误(我会在某处检查OverflowException)。这是一种可能性。下周我会进一步调查这件事!我对此不确定。实际上,我有两个并行系统,它们不相互作用。除了消息和端口之外,这两个端口实际上是相同的。一个看起来很稳定,另一个不太稳定。然而,两者都会时不时地断开连接。如果接收到长时间运行的操作,是否跳过了心跳?这可能是一个问题:-如果您有大量消息偶尔经过套接字(处理端到端所需的时间超过5秒),则可以这样做。远程处理系统在自己的线程上运行,因此它应该不会受到长时间运行操作的副作用-唯一的例外是CPU利用率峰值接近100%,并且它们的专用心跳线程无法调度。您是指需要5秒以上时间才能发送端到端的大型消息吗?我将我的系统重构为许多小消息,但有些需要45秒来处理。
WARN  2015-07-31 07:22:12,994 [1584] - Association with remote system akka.tcp://SystemName@Server:8081 has failed; address is now gated for 5000 ms. Reason is: [Disassociated]
ERROR 2015-07-31 07:22:12,994 [1584] - Disassociated
Akka.Remote.EndpointDisassociatedException: Disassociated
   at Akka.Remote.EndpointWriter.PublishAndThrow(Exception reason, LogLevel level)
   at Akka.Remote.EndpointWriter.Unhandled(Object message)
   at Akka.Remote.EndpointWriter.Writing(Object message)
   at Akka.Actor.ActorCell.<>c__DisplayClass3e.<Akka.Actor.IUntypedActorContext.Become>b__3d(Object m)
   at Akka.Actor.ActorBase.AroundReceive(Receive receive, Object message)
   at Akka.Actor.ActorCell.ReceiveMessage(Object message)
   at Akka.Actor.ActorCell.AutoReceiveMessage(Envelope envelope)
   at Akka.Actor.ActorCell.Invoke(Envelope envelope)
DEBUG 2015-07-31 07:22:12,996 [1494] - Disassociated [akka.tcp://SystemName@Client:57284] -> akka.tcp://SystemName@Server:8081
DEBUG 2015-07-31 07:23:13,033 [1469] - Drained buffer with maxWriteCount: 50, fullBackoffCount: 1,smallBackoffCount: 0, noBackoffCount: 0,adaptiveBackoff: 10000
ERROR 2015-07-31 07:24:13,019 [1601] - No response from remote. Handshake timed out or transport failure detector triggered.
DEBUG 2015-07-31 07:24:13,020 [1569] - Disassociated [akka.tcp://SystemName@Client:57284] -> akka.tcp://SystemName@Server:8081
WARN  2015-07-31 07:24:13,020 [1601] - Association with remote system akka.tcp://SystemName@Server:8081 has failed; address is now gated for 5000 ms. Reason is: [Disassociated]
ERROR 2015-07-31 07:24:13,021 [1601] - Disassociated