python - 如何修复 Twisted python 与另一端的连接以不干净的方式丢失?

标签 python twisted buildbot twisted.web twisted.internet

我正在使用 buildbot 作为我的 CI。它是使用扭曲的 python 构建的。

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

我的网络很好,但想知道为什么我的 worker 会迷路。

我想知道在什么情况下我们会在 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.

最佳答案

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

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

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

关于python - 如何修复 Twisted python 与另一端的连接以不干净的方式丢失?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/42536817/

相关文章:

Python - 正确提取拆分列表

python - render_to_response 时 Django View ValueError

Python - Twisted 和 PyAudio + 聊天

sql - 扭曲的adbapi : number affected rows and last insert id

python - BuildBot 中的条件步骤

continuous-integration - buildbot 可以使用相同的构建器进行白天提交构建和夜间完整重建吗?

python - Pandas 重采样时间序列向后计数(或反向重采样)

Python setuptools 隐藏了测试未运行的真正原因

python - 如何知道 react 堆所有过程是否完成

python - 如何附加到 BuildBot ShellCommand 的 PATH 环境变量