HelloZeroNet / HelloZeroNet/ZeroNet

Tor problem with latest PySocks

未关闭
#893 5 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
bug
主要语言
JavaScript
星标
18.8k
派生
2.3k
PR 合并指标
30 天内没有已合并 PR

描述

For some unknown reason most (70-80%) of the socket connection immediately fails with latest PySocks. It can be Tor socks server or gevent incompatibility.
```
[2017-04-08 22:04:42,749] DEBUG FileServer Conn# 1 boot3rdez4rzn36x.onion [?] > Connecting...
[2017-04-08 22:04:42,749] DEBUG TorManager Creating new Tor socket to boot3rdez4rzn36x.onion:15441
[2017-04-08 22:04:42,750] DEBUG FileServer Conn# 2 boot.zeronet.io [?] > Connecting...
[2017-04-08 22:04:45,809] DEBUG Site:1iD5ZQ..duGz Try to get listModifications from peers: [, , , , , , , , , , , , , , , , , , , , , , , , ], connected: 0, since: 1491577157.08
[2017-04-08 22:04:45,811] DEBUG FileServer Conn# 3 x.x.x.x [?] > Connecting...
[2017-04-08 22:04:45,812] DEBUG FileServer Conn# 4 x.x.x.x [?] > Connecting...
[2017-04-08 22:04:45,812] DEBUG FileServer Conn# 5 x.x.x.x [?] > Connecting...
[2017-04-08 22:04:45,815] DEBUG FileServer Conn# 4 x.x.x.x [?] > Closing connection: x.x.x.x Connect error: SOCKS5Error: 0x01: General SOCKS server failure in ConnectionServer.py line 139 > Connection.py line 100 > socks.py line 96 > socks.py line 813 > socks.py line 477 > socks.py line 552, waiting_requests: 0, sites: 0, buff: 0...
[2017-04-08 22:04:45,815] DEBUG FileServer Conn# 6 x.x.x.x [?] > Connecting...
[2017-04-08 22:04:45,815] DEBUG FileServer Conn# 3 x.x.x.x [?] > Closing connection: x.x.x.x Connect error: SOCKS5Error: 0x01: General SOCKS server failure in ConnectionServer.py line 139 > Connection.py line 100 > socks.py line 96 > socks.py line 813 > socks.py line 477 > socks.py line 552, waiting_requests: 0, sites: 0, buff: 0...
[2017-04-08 22:04:45,815] DEBUG FileServer Conn# 7 x.x.x.x [?] > Connecting...
[2017-04-08 22:04:45,816] DEBUG FileServer Conn# 5 x.x.x.x [?] > Closing connection: x.x.x.x Connect error: SOCKS5Error: 0x01: General SOCKS server failure in ConnectionServer.py line 139 > Connection.py line 100 > socks.py line 96 > socks.py line 813 > socks.py line 477 > socks.py line 552, waiting_requests: 0, sites: 0, buff: 0...
[2017-04-08 22:04:45,818] DEBUG FileServer Conn# 8 x.x.x.x [?] > Connecting...
[2017-04-08 22:04:45,819] DEBUG FileServer Conn# 6 x.x.x.x [?] > Closing connection: x.x.x.x Connect error: SOCKS5Error: 0x01: General SOCKS server failure in ConnectionServer.py line 139 > Connection.py line 100 > socks.py line 96 > socks.py line 813 > socks.py line 477 > socks.py line 552, waiting_requests: 0, sites: 0, buff: 0...
[2017-04-08 22:04:45,819] DEBUG FileServer Conn# 9 x.x.x.x [?] > Connecting...
[2017-04-08 22:04:45,819] DEBUG FileServer Conn# 7 x.x.x.x [?] > Closing connection: x.x.x.x Connect error: SOCKS5Error: 0x01: General SOCKS server failure in ConnectionServer.py line 139 > Connection.py line 100 > socks.py line 96 > socks.py line 813 > socks.py line 477 > socks.py line 552, waiting_requests: 0, sites: 0, buff: 0...
[2017-04-08 22:04:45,819] DEBUG FileServer Conn#10 x.x.x.x [?] > Connecting...
[2017-04-08 22:04:45,821] DEBUG FileServer Conn# 8 x.x.x.x [?] > Closing connection: x.x.x.x Connect error: SOCKS5Error: 0x01: General SOCKS server failure in ConnectionServer.py line 139 > Connection.py line 100 > socks.py line 96 > socks.py line 813 > socks.py line 477 > socks.py line 552, waiting_requests: 0, sites: 0, buff: 0...
[2017-04-08 22:04:45,822] DEBUG FileServer Conn#11 x.x.x.x [?] > Connecting...
[2017-04-08 22:04:45,822] DEBUG FileServer Conn# 9 x.x.x.x [?] > Closing connection: x.x.x.x Connect error: SOCKS5Error: 0x01: General SOCKS server failure in ConnectionServer.py line 139 > Connection.py line 100 > socks.py line 96 > socks.py line 813 > socks.py line 477 > socks.py line 552, waiting_requests: 0, sites: 0, buff: 0...
[2017-04-08 22:04:45,825] DEBUG FileServer Conn#12 x.x.x.x [?] > Connecting...
[2017-04-08 22:04:45,828] DEBUG Ui.UiServer x.x.x.x - - [2017-04-08 22:04:45] "GET http://zero/1HeLLo4uzjaLetFx6NH3PMwFP3qbRbTf3D/img/loading-circle.gif HTTP/1.1" 200 2643 0.002000
[2017-04-08 22:04:45,828] DEBUG FileServer Conn#10 x.x.x.x [?] > Closing connection: x.x.x.x Connect error: SOCKS5Error: 0x01: General SOCKS server failure in ConnectionServer.py line 139 > Connection.py line 100 > socks.py line 96 > socks.py line 813 > socks.py line 477 > socks.py line 552, waiting_requests: 0, sites: 0, buff: 0...
[2017-04-08 22:04:45,829] DEBUG FileServer Conn#13 x.x.x.x [?] > Connecting...
[2017-04-08 22:04:45,831] DEBUG FileServer Conn#11 x.x.x.x [?] > Closing connection: x.x.x.x Connect error: SOCKS5Error: 0x01: General SOCKS server failure in ConnectionServer.py line 139 > Connection.py line 100 > socks.py line 96 > socks.py line 813 > socks.py line 477 > socks.py line 552, waiting_requests: 0, sites: 0, buff: 0...
[2017-04-08 22:04:45,831] DEBUG FileServer Conn#14 x.x.x.x [?] > Connecting...
[2017-04-08 22:04:45,832] DEBUG FileServer Conn#12 x.x.x.x [?] > Closing connection: x.x.x.x Connect error: SOCKS5Error: 0x01: General SOCKS server failure in ConnectionServer.py line 139 > Connection.py line 100 > socks.py line 96 > socks.py line 813 > socks.py line 477 > socks.py line 552, waiting_requests: 0, sites: 0, buff: 0...
[2017-04-08 22:04:45,832] DEBUG FileServer Conn#15 x.x.x.x [?] > Connecting...
[2017-04-08 22:04:45,834] DEBUG FileServer Conn#13 x.x.x.x [?] > Closing connection: x.x.x.x Connect error: SOCKS5Error: 0x01: General SOCKS server failure in ConnectionServer.py line 139 > Connection.py line 100 > socks.py line 96 > socks.py line 813 > socks.py line 477 > socks.py line 552, waiting_requests: 0, sites: 0, buff: 0...
[2017-04-08 22:04:45,835] DEBUG FileServer Conn#16 x.x.x.x [?] > Connecting...
[2017-04-08 22:04:45,835] DEBUG FileServer Conn#14 x.x.x.x [?] > Closing connection: x.x.x.x Connect error: SOCKS5Error: 0x01: General SOCKS server failure in ConnectionServer.py line 139 > Connection.py line 100 > socks.py line 96 > socks.py line 813 > socks.py line 477 > socks.py line 552, waiting_requests: 0, sites: 0, buff: 0...
[2017-04-08 22:04:45,835] DEBUG FileServer Conn#17 x.x.x.x [?] > Connecting...
[2017-04-08 22:04:45,835] DEBUG FileServer Conn#15 x.x.x.x [?] > Closing connection: x.x.x.x Connect error: SOCKS5Error: 0x01: General SOCKS server failure in ConnectionServer.py line 139 > Connection.py line 100 > socks.py line 96 > socks.py line 813 > socks.py line 477 > socks.py line 552, waiting_requests: 0, sites: 0, buff: 0...
[2017-04-08 22:04:45,836] DEBUG FileServer Conn#18 x.x.x.x [?] > Connecting...
[2017-04-08 22:04:45,838] DEBUG FileServer Conn#16 x.x.x.x [?] > Closing connection: x.x.x.x Connect error: SOCKS5Error: 0x01: General SOCKS server failure in ConnectionServer.py line 139 > Connection.py line 100 > socks.py line 96 > socks.py line 813 > socks.py line 477 > socks.py line 552, waiting_requests: 0, sites: 0, buff: 0...
[2017-04-08 22:04:45,838] DEBUG FileServer Conn#19 x.x.x.x [?] > Connecting...
[2017-04-08 22:04:45,838] DEBUG FileServer Conn#18 x.x.x.x [?] > Closing connection: x.x.x.x Connect error: SOCKS5Error: 0x01: General SOCKS server failure in ConnectionServer.py line 139 > Connection.py line 100 > socks.py line 96 > socks.py line 813 > socks.py line 477 > socks.py line 552, waiting_requests: 0, sites: 0, buff: 0...
[2017-04-08 22:04:45,838] DEBUG FileServer Conn#20 x.x.x.x [?] > Connecting...
[2017-04-08 22:04:45,841] DEBUG FileServer Conn#17 x.x.x.x [?] > Closing connection: x.x.x.x Connect error: SOCKS5Error: 0x01: General SOCKS server failure in ConnectionServer.py line 139 > Connection.py line 100 > socks.py line 96 > socks.py line 813 > socks.py line 477 > socks.py line 552, waiting_requests: 0, sites: 0, buff: 0...
[2017-04-08 22:04:45,842] DEBUG FileServer Conn#21 x.x.x.x [?] > Connecting...
[2017-04-08 22:04:45,854] DEBUG FileServer Conn#20 x.x.x.x [?] > Closing connection: x.x.x.x Connect error: SOCKS5Error: 0x01: General SOCKS server failure in ConnectionServer.py line 139 > Connection.py line 100 > socks.py line 96 > socks.py line 813 > socks.py line 477 > socks.py line 552, waiting_requests: 0, sites: 0, buff: 0...
[2017-04-08 22:04:45,855] DEBUG FileServer Conn#22 x.x.x.x [?] > Connecting...
[2017-04-08 22:04:45,855] DEBUG FileServer Conn#19 x.x.x.x [?] > Closing connection: x.x.x.x Connect error: SOCKS5Error: 0x01: General SOCKS server failure in ConnectionServer.py line 139 > Connection.py line 100 > socks.py line 96 > socks.py line 813 > socks.py line 477 > socks.py line 552, waiting_requests: 0, sites: 0, buff: 0...
[2017-04-08 22:04:45,857] DEBUG FileServer Conn#23 x.x.x.x [?] > Connecting...
[2017-04-08 22:04:45,858] DEBUG FileServer Conn#21 x.x.x.x [?] > Closing connection: x.x.x.x Connect error: SOCKS5Error: 0x01: General SOCKS server failure in ConnectionServer.py line 139 > Connection.py line 100 > socks.py line 96 > socks.py line 813 > socks.py line 477 > socks.py line 552, waiting_requests: 0, sites: 0, buff: 0...
[2017-04-08 22:04:45,858] DEBUG FileServer Conn#24 x.x.x.x [?] > Connecting...
[2017-04-08 22:04:45,859] DEBUG FileServer Conn#24 x.x.x.x [?] > Closing connection: x.x.x.x Connect error: SOCKS5Error: 0x01: General SOCKS server failure in ConnectionServer.py line 139 > Connection.py line 100 > socks.py line 96 > socks.py line 813 > socks.py line 477 > socks.py line 552, waiting_requests: 0, sites: 0, buff: 0...
[2017-04-08 22:04:45,861] DEBUG FileServer Conn#25 x.x.x.x [?] > Connecting...
[2017-04-08 22:04:45,861] DEBUG FileServer Conn#23 x.x.x.x [?] > Closing connection: x.x.x.x Connect error: SOCKS5Error: 0x01: General SOCKS server failure in ConnectionServer.py line 139 > Connection.py line 100 > socks.py line 96 > socks.py line 813 > socks.py line 477 > socks.py line 552, waiting_requests: 0, sites: 0, buff: 0...
[2017-04-08 22:04:45,861] DEBUG FileServer Conn#26 x.x.x.x [?] > Connecting...
[2017-04-08 22:04:45,861] DEBUG FileServer Conn#22 x.x.x.x [?] > Closing connection: x.x.x.x Connect error: SOCKS5Error: 0x01: General SOCKS server failure in ConnectionServer.py line 139 > Connection.py line 100 > socks.py line 96 > socks.py line 813 > socks.py line 477 > socks.py line 552, waiting_requests: 0, sites: 0, buff: 0...
[2017-04-08 22:04:45,861] DEBUG FileServer Conn#27 x.x.x.x [?] > Connecting...
[2017-04-08 22:04:45,864] DEBUG FileServer Conn#25 x.x.x.x [?] > Closing connection: x.x.x.x Connect error: SOCKS5Error: 0x01: General SOCKS server failure in ConnectionServer.py line 139 > Connection.py line 100 > socks.py line 96 > socks.py line 813 > socks.py line 477 > socks.py line 552, waiting_requests: 0, sites: 0, buff: 0...
[2017-04-08 22:04:45,864] DEBUG FileServer Conn#26 x.x.x.x [?] > Closing connection: x.x.x.x Connect error: SOCKS5Error: 0x01: General SOCKS server failure in ConnectionServer.py line 139 > Connection.py line 100 > socks.py line 96 > socks.py line 813 > socks.py line 477 > socks.py line 552, waiting_requests: 0, sites: 0, buff: 0...
[2017-04-08 22:04:45,865] DEBUG FileServer Conn#27 x.x.x.x [?] > Closing connection: x.x.x.x Connect error: SOCKS5Error: 0x01: General SOCKS server failure in ConnectionServer.py line 139 > Connection.py line 100 > socks.py line 96 > socks.py line 813 > socks.py line 477 > socks.py line 552, waiting_requests: 0, sites: 0, buff: 0...
[2017-04-08 22:04:45,865] DEBUG Site:1iD5ZQ..duGz Queried listModifications from: [] in 0.057s
[2017-04-08 22:04:45,973] DEBUG Site:1TaLkF..jipT Signing 1491681886 for boot.zeronet.io#f36ca555bee6ba216b14d10f38c16f7769ff064e0e37d887603548cc2e64191d:15441 to add 6 onions
[2017-04-08 22:04:47,596] DEBUG Site:1Gfey7..fcdp Announced types ['onion'] in mode startup to 5 trackers in 1.047s, errors: [], slow: ['1.05s http://tracker1.wasabii.com.tw:6969/announce']
```

Until we find solution for it I reverted back to old one

- [ ] Reproduce
- [ ] Fix

贡献指南

这个仓库没有索引到贡献指南

调研方向

Start by tracing the failures through ConnectionServer.py line 139, Connection.py line 100, and the referenced socks.py locations, then compare the latest PySocks and gevent behavior with the Tor SOCKS server. Reproduce the reported connection failures and identify whether PySocks, gevent, or the Tor server is responsible; done means the cause is established and the affected connections no longer fail intermittently.

由索引模型根据 Issue 内容生成。

评估

技术栈
python
领域
networking
Issue 类型
缺陷
难度
4/5
预计耗时
3-5 天
活跃度
停滞
描述清晰度
需要澄清
新手友好度
25/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。