1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2024-06-29 10:45:22 +00:00

increase ping interval

This commit is contained in:
Darien Raymond 2016-10-11 21:21:06 +02:00
parent b5910dccae
commit ab3173039b
No known key found for this signature in database
GPG Key ID: 7251FFA14BB18169

View File

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