modulepackage
0.0.0-20230117115627-bf5645588d30
Repository: https://github.com/pandaychen/tcp-graceful.git
Documentation: pkg.go.dev
# README
tcp-graceful
一个基于golang的优雅热重启库实现,支持golang-TCP服务
关联文章:Golang 系统编程:如何实现对后台服务优雅的热重启?
测试方法:
- 启动主程序,通过
cat /var/run/tmp.pid
获取当前主进程的$pid
- 通过
kill -SIGHUP $pid
执行主程序的热重启机制 - 重启后的生成新的主程序不改变当前运行的相对路径
# Packages
No description provided by the author
# Functions
No description provided by the author
NewTcpServer ...
NewTcpServerFromENV ...
# Constants
No description provided by the author
# Type aliases
No description provided by the author