Sfoglia il codice sorgente

increase ping interval

Darien Raymond 9 anni fa
parent
commit
ab3173039b
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      transport/internet/kcp/connection.go

+ 1 - 1
transport/internet/kcp/connection.go

@@ -567,7 +567,7 @@ func (this *Connection) flush() {
 	this.receivingWorker.Flush(current)
 	this.sendingWorker.Flush(current)
 
-	if current-atomic.LoadUint32(&this.lastPingTime) >= 1000 {
+	if current-atomic.LoadUint32(&this.lastPingTime) >= 3000 {
 		this.Ping(current, CommandPing)
 	}