HelloZeroNet / HelloZeroNet/ZeroNet
Second instance will continue running even if port is already taken
还没有人认领这个 Issue。
- 主要语言
- JavaScript
- 星标
- 18.8k
- 派生
- 2.3k
- PR 合并指标
- 30 天内没有已合并 PR
描述
Describe your environment
-
ZeroNet version: 0.7.0
-
Operating system: Windows 10
-
First instance:
C:\Users\filips\AppData\Local\Programs\ZeroNet -
Second instance:
D:\Users\filips\Namizje\ZeroNet-win-dist-win64
Describe the problem
Steps to reproduce
- Create first ZeroNet instance.
- Confirm that it works.
- Create a second ZeroNet instance with the same port.
- It will continue running even if the port is already taken.
Observed results
The second instance will try to start. It will fail because the port for a server is already taken by the first instance.
But for some reason, the process of the second instance won't be killed so it will be still running, but without any usability.
When you will try to open the server of the second instance, it will actually use the first one.
Here is my debug log of the second instance. As you can see, it will detect that port is already taken and stop UiServer. But the process will be still running until I manually kill it from Task Manager.
This issue is mostly based on this Reddit topic.
Expected results
The second instance should detect that port is already taken, inform the user and then stop itself.
贡献指南
这个仓库没有索引到贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
在 Windows 10 上启动两个使用同一服务器端口的 ZeroNet 实例来重现问题,然后查看第二个实例对应的链接调试日志。确认系统报告了端口冲突,并且 UiServer 停止,而进程仍保持运行。完成标准是第二个实例通知用户并退出,而不是继续运行。
由索引模型根据 Issue 内容生成。
评估
- 领域
- backend, networking
- Issue 类型
- 缺陷
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 35/100