mirror of https://github.com/v2ray/v2ray-core
notify read and write on remote close
parent
52fcfd71e6
commit
29d62185cf
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue