1
0
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:
astaxie
2013-12-07 13:26:22 +08:00
parent 2220968a01
commit 48ad0202bf
4 changed files with 21 additions and 9 deletions

View File

@ -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)
}