实现请求连接数等限制

This commit is contained in:
刘祥超
2021-12-12 11:48:01 +08:00
parent bb5fa38613
commit e5f9316e33
20 changed files with 632 additions and 86 deletions

View File

@@ -11,7 +11,7 @@ func isClientConnClosed(conn net.Conn) bool {
if conn == nil {
return true
}
clientConn, ok := conn.(ClientConnCloser)
clientConn, ok := conn.(ClientConnInterface)
if ok {
return clientConn.IsClosed()
}