mirror of https://github.com/v2ray/v2ray-core
parent
0a34ec0be6
commit
d08ffedf48
|
@ -512,7 +512,7 @@ func (this *Connection) flush() {
|
||||||
this.receivingWorker.Flush(current)
|
this.receivingWorker.Flush(current)
|
||||||
this.sendingWorker.Flush(current)
|
this.sendingWorker.Flush(current)
|
||||||
|
|
||||||
if this.sendingWorker.PingNecessary() || this.receivingWorker.PingNecessary() || current-atomic.LoadUint32(&this.lastPingTime) >= 5000 {
|
if this.sendingWorker.PingNecessary() || this.receivingWorker.PingNecessary() || current-atomic.LoadUint32(&this.lastPingTime) >= 3000 {
|
||||||
seg := NewCmdOnlySegment()
|
seg := NewCmdOnlySegment()
|
||||||
seg.Conv = this.conv
|
seg.Conv = this.conv
|
||||||
seg.Command = CommandPing
|
seg.Command = CommandPing
|
||||||
|
|
Loading…
Reference in New Issue