如何修复到另一端的扭曲python连接以非干净的方式丢失?

如何修复到另一端的扭曲python连接以非干净的方式丢失?,python,twisted,buildbot,twisted.web,twisted.internet,Python,Twisted,Buildbot,Twisted.web,Twisted.internet,我正在使用buildbot作为我的CI。它是使用TwistedPython构建的 我的构建工作人员大约在10分钟后迷路了 我的网络很好,但我想知道为什么我的员工迷路了 我想知道在什么情况下我们会在TwistedPython中看到这种错误 错误: remoteFailed: [Failure instance: Traceback (failure with no frames): <class 'twisted.internet.error.ConnectionLost'>: Con

我正在使用buildbot作为我的CI。它是使用TwistedPython构建的

我的构建工作人员大约在10分钟后迷路了

我的网络很好,但我想知道为什么我的员工迷路了

我想知道在什么情况下我们会在TwistedPython中看到这种错误

错误:

remoteFailed: [Failure instance: Traceback (failure with no frames): <class 'twisted.internet.error.ConnectionLost'>: Connection to the other side was lost in a non-clean fashion.
remoteFailed:[故障实例:回溯(没有帧的故障)::与另一端的连接以非干净方式丢失。

如果您看到断开连接,并且在主服务器和工作服务器的twisted.log中都没有任何线索,那么您的问题是网络

您可能有一些防火墙,在防火墙之间关闭长时间运行的tcp连接或其他东西


我建议在两侧运行tcpdump,并查看谁在发送RST数据包,

,因为@tardyp可能注意到这是您的网络配置,它会在没有流量的情况下重置长TCP连接

尝试按如下所述为主从通信设置较小的keepalive值:


发送保持活动数据包的默认间隔为一小时。

您使用哪个Buildbot版本?Buildbot版本0.9.4。twisted为17。
c['workers'] = [
    worker.Worker('bot-linux', 'linuxpasswd',
                  keepalive_interval=60)
]