We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 035aa77 commit 774498bCopy full SHA for 774498b
modules/graceful/server.go
@@ -34,8 +34,10 @@ type Server struct {
34
address string
35
listener net.Listener
36
37
- lock sync.RWMutex
38
- state state
+ lock sync.RWMutex
+ state state
39
+ // FIXME: actually we do not need to record the whole list, just a counter should be enough
40
+ // Because the connections will be closed by OS, no need to track them one by one.
41
connList *list.List
42
connEmptyCond *sync.Cond
43
0 commit comments