1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2024-11-16 01:17:30 -05:00

send ack more frequently too

This commit is contained in:
Darien Raymond 2018-02-11 02:08:20 +01:00
parent 0a6a9547a0
commit ae52e325a2
No known key found for this signature in database
GPG Key ID: 7251FFA14BB18169

View File

@ -258,6 +258,7 @@ func (c *Connection) ReadMultiBuffer() (buf.MultiBuffer, error) {
}
mb := c.receivingWorker.ReadMultiBuffer()
if !mb.IsEmpty() {
c.dataUpdater.WakeUp()
return mb, nil
}
@ -307,6 +308,7 @@ func (c *Connection) Read(b []byte) (int, error) {
}
nBytes := c.receivingWorker.Read(b)
if nBytes > 0 {
c.dataUpdater.WakeUp()
return nBytes, nil
}