Skip to content

Commit 774498b

Browse files
committed
fixme
1 parent 035aa77 commit 774498b

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

modules/graceful/server.go

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,10 @@ type Server struct {
3434
address string
3535
listener net.Listener
3636

37-
lock sync.RWMutex
38-
state state
37+
lock sync.RWMutex
38+
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.
3941
connList *list.List
4042
connEmptyCond *sync.Cond
4143

0 commit comments

Comments
 (0)