mirror of
https://github.com/astaxie/beego.git
synced 2025-07-04 03:10:18 +00:00
split into small files
This commit is contained in:
13
grace/conn.go
Normal file
13
grace/conn.go
Normal file
@ -0,0 +1,13 @@
|
||||
package grace
|
||||
|
||||
import "net"
|
||||
|
||||
type graceConn struct {
|
||||
net.Conn
|
||||
server *graceServer
|
||||
}
|
||||
|
||||
func (c graceConn) Close() error {
|
||||
c.server.wg.Done()
|
||||
return c.Conn.Close()
|
||||
}
|
Reference in New Issue
Block a user