HelloZeroNet / HelloZeroNet/ZeroNet
Adjust number of connections based on system config
- Ngôn ngữ chính
- JavaScript
- Star
- 18.8k
- Fork
- 2.3k
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Mô tả
I didn't have this issue before v0.4 and the previous stable Tor, now it makes Tor too busy and connections can't be established. Maybe it's due to the more content on the network or currently poorer quality of my internet connection.
Anyway, I thought to put this out there for discussion: `self.pool` could be set to a lower value for systems with 1GB RAM, medium for 1GB-4GB, and 1,000 for above that. Also the backlog could be adjusted accordingly.
I'm now running v0.4.0 and the latest stable Tor release 0.2.8.6 and getting a lot of this (actual numbers replaced with x).
```
Your Guard x (x) is failing more circuits than usual. Most likely this means the Tor network is overloaded. Success counts are 1xx/1xx. Use counts are 6x/6x. 1xx circuits completed, 5 were unusable, 0 collapsed, and 1x timed out. For reference, your timeout cutoff is xxx seconds..
```
and
```
Tried for 120 seconds to get a connection to [scrubbed]:15441. Giving up.
```
Hướng dẫn đóng góp
Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này
Hướng nghiên cứu
The issue identifies self.pool and the backlog as the settings to inspect; begin by locating where they are initialized and how the reported connection failures are surfaced. Check how system memory is determined, then verify the intended limits for the three RAM ranges and test that connections can be established without the reported overload.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Đánh giá
- Lĩnh vực
- networking
- Loại issue
- Lỗi
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức độ hoạt động
- Đình trệ
- Độ rõ ràng
- Khá rõ ràng
- Mức phù hợp với người mới
- 28/100