1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2024-09-28 23:06:14 -04:00

notify read and write on remote close

This commit is contained in:
Darien Raymond 2016-12-26 08:22:25 +01:00
parent 52fcfd71e6
commit 29d62185cf
No known key found for this signature in database
GPG Key ID: 7251FFA14BB18169

View File

@ -517,6 +517,10 @@ func (v *Connection) Input(segments []Segment) {
v.SetState(StateTerminated)
}
}
if seg.Option == SegmentOptionClose || seg.Command() == CommandTerminate {
v.OnDataInput()
v.OnDataOutput()
}
v.sendingWorker.ProcessReceivingNext(seg.ReceivinNext)
v.receivingWorker.ProcessSendingNext(seg.SendingNext)
v.roundTrip.UpdatePeerRTO(seg.PeerRTO, current)