【问题标题】:How to fix Twisted python Connection to the other side was lost in a non-clean fashion?如何修复 Twisted python 与另一侧的连接以不干净的方式丢失?
【发布时间】:2017-07-21 01:56:15
【问题描述】:

我使用 buildbot 作为我的 CI。它是使用twisted python构建的。

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

我的网络很好,但想知道为什么我的工作人员会迷路。

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

错误:

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.

【问题讨论】:

  • 您使用哪个 Buildbot 版本?
  • buildbot 版本 0.9.4。扭曲是 17。

标签: python twisted buildbot twisted.web twisted.internet


【解决方案1】:

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

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

c['workers'] = [
    worker.Worker('bot-linux', 'linuxpasswd',
                  keepalive_interval=60)
]

发送keep-alive数据包的默认间隔是一小时。

【讨论】:

    【解决方案2】:

    如果你看到断连,并且master和worker的twisted.log中都没有线索,那么你的问题就是网络问题。

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

    我建议在两边都运行 tcpdump,看看谁在发送 RST 数据包

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2018-06-28
      • 2011-05-30
      • 1970-01-01
      • 1970-01-01
      • 2014-08-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多