mirror of
https://github.com/astaxie/beego.git
synced 2025-06-12 11:40:38 +00:00
update some tips
This commit is contained in:
@ -87,8 +87,7 @@ func (c *ConnWriter) connect() error {
|
||||
return err
|
||||
}
|
||||
|
||||
tcpConn, ok := conn.(*net.TCPConn)
|
||||
if ok {
|
||||
if tcpConn, ok := conn.(*net.TCPConn); ok {
|
||||
tcpConn.SetKeepAlive(true)
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user