Comments (2)
server捕获信号就可以停止了,至于平滑重启还是要依赖另外一个进程来监控。
from gotcp.
对了,你可以参考下 https://github.com/facebookgo/grace
from gotcp.
Related Issues (16)
- 目前 server 运行起来后 客户端链接通信必须符合 type 标准,否则 server 错误推出 HOT 3
- 有个疑问 HOT 1
- 异步服务有些问题. HOT 18
- 你这支持异步写数据么? HOT 5
- 建议以树形结构维护客户端,新增连接池,多协议,增加事件回调等 HOT 10
- 连接断掉,conn的HandleChannel里的packet未处理给丢弃了 HOT 3
- 请问如何优雅地使用gotcp框架做客户端? HOT 2
- 请问gotcp 框架的处理性能你有测试过吗? HOT 2
- ReadPacket后,未调用 OnMessage HOT 9
- conn.go中的asyncDo函数加*sync.WaitGroup的作用是什么?
- ReadPacket只能一次返回一个包呀. HOT 2
- 请教一个问题 HOT 1
- How to deal with half packet data? HOT 4
- waitGroup.Add(1) 不能放置于 goroutine 内部 HOT 1
- 关于waitgroup HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gotcp.