Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

杀死进程后重启应用提示端口被占用 #1211

Open
jinkaz opened this issue Oct 14, 2024 · 3 comments
Open

杀死进程后重启应用提示端口被占用 #1211

jinkaz opened this issue Oct 14, 2024 · 3 comments
Labels
invalid issue invalid issue (not related to Hertz or described in document or not enough information provided) stale

Comments

@jinkaz
Copy link

jinkaz commented Oct 14, 2024

版本:0.9.3
问题:在单机测试环境,测试通过kill -2 kill -9 后会有一段时间提示端口号被占用
日志:panic: create netpoll listener fail: listen tcp 0.0.0.0:8523: bind: address already in use

-2 也看到了优雅停机的日志:
2024/10/14 17:45:08.359425 hertz.go:113: [Info] HERTZ: Received signal: interrupt
2024/10/14 17:45:08.359502 hertz.go:77: [Info] HERTZ: Begin graceful shutdown, wait at most num=5 seconds...
2024/10/14 17:45:08.361387 registry.go:121: [Info] HERTZ: deregister instance success
2024/10/14 17:45:08.361504 engine.go:314: [Info] HERTZ: Execute OnShutdownHooks finish
但重启应用,就会提示被占用。
启动命令:nohup ./xxxx &

@github-actions github-actions bot added the invalid issue invalid issue (not related to Hertz or described in document or not enough information provided) label Oct 14, 2024
Copy link

This issue has been marked as invalid question, please give more information by following the issue template. The issue will be closed in 1 days if no further activity occurs.

@github-actions github-actions bot added the stale label Oct 14, 2024
@GuangmingLuo
Copy link
Member

@jinkaz 按照模版创建 issue
image

@github-actions github-actions bot removed the stale label Oct 14, 2024
Copy link

This issue has been marked as invalid question, please give more information by following the issue template. The issue will be closed in 1 days if no further activity occurs.

@github-actions github-actions bot added the stale label Oct 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
invalid issue invalid issue (not related to Hertz or described in document or not enough information provided) stale
Development

No branches or pull requests

2 participants