This commit is contained in:
esrrhs committed 2019-10-31 21:18:42 +08:00
1 parent 64f8ec24e6
commit 2a75a80a0e
2 files changed
+3 -3

No files matched your search

+1 -1
View File
@@ -121,7 +121,7 @@ func (p *Server) processPacket(packet *Packet) {
localConn := p.getServerConnById(id)
if localConn == nil {
if p.localConnMapSize >= p.maxconn {
if p.maxconn > 0 && p.localConnMapSize >= p.maxconn {
loggo.Info("too many connections %d, server connected target fail %s", p.localConnMapSize, packet.my.Target)
return
}