mirror of
https://github.com/v2fly/v2ray-core
synced 2024-02-27 03:18:06 +00:00
notify read and write on remote close
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user