notify read and write on remote close

pull/255/merge
Darien Raymond 8 years ago
parent 52fcfd71e6
commit 29d62185cf
No known key found for this signature in database
GPG Key ID: 7251FFA14BB18169

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

Loading…
Cancel
Save