HelloZeroNet / HelloZeroNet/ZeroNet

Can not abort "python zeronet.py siteDownload" command

Đang mở
#1,276 0 bình luận 0 reaction 0 người được giao Xem trên GitHub
bug
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ả

### Step 1: Please describe your environment

Version: 0.6.1 r3221, Python 2.7.5 (default, Aug 4 2017, 00:39:18)
[GCC 4.8.5 20150623 (Red Hat 4.8.5-16)], Gevent: 1.0
OS: Linux 64 bit

### Step 2: Describe the problem:

If site does not have any peers, the "python zeronet.py siteDownload" command gets stuck and i can not abort it:

> [user@localhost ZeroNet]# python zeronet.py siteDownload addresshere
> - Starting ZeroNet...
> - OpenSSL loaded, version: 01000207F
> - Version: 0.6.1 r3221, Python 2.7.5 (default, Aug 4 2017, 00:39:18)
> [GCC 4.8.5 20150623 (Red Hat 4.8.5-16)], Gevent: 1.0
> - Opening a simple connection server
> TorManager Connecting to Tor Controller 127.0.0.1:9051
> TorManager Tor controller connect error: error: [Errno 111] Connection refused in TorManager.py line 170 > socket.py line 342
> TorManager Starting self-bundled Tor, due to Tor proxy port 127.0.0.1:9050 check error: No connection
> Site:1KR7WW..hMPK Content.json not exist: data/addresshere/content.json
> Announcing...
> Downloading...
> ConnServer Internet offline
> ^CShutting down...
> - Unhandled exception
> None
> KeyboardInterrupt
> ^CShutting down...
> - Unhandled exception
> None
> KeyboardInterrupt
> exit
> ^Ad^CShutting down...
> - Unhandled exception
> None
> KeyboardInterrupt

Keyboard interrupt means i did abort command Ctrl+C in my console (Putty SSH client)

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

Bắt đầu từ điểm vào `python zeronet.py siteDownload` và tái hiện lệnh với một site không có peer. Theo dõi đường dẫn tắt sau Ctrl+C và xác minh rằng tiến trình thoát một cách sạch sẽ mà không xuất hiện lặp lại thông báo KeyboardInterrupt hoặc ngoại lệ chưa được xử lý.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Đánh giá

Công nghệ
python
Lĩnh vực
cli, 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
Cần làm rõ
Mức phù hợp với người mới
25/100

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.