mirror of
https://github.com/refraction-networking/uquic.git
synced 2025-04-03 04:07:35 +03:00
rename StreamFrame.FinBit to Fin
This commit is contained in:
parent
865332015c
commit
838dd6e81a
14 changed files with 64 additions and 64 deletions
|
@ -232,7 +232,7 @@ func (s *sendStream) popNewOrRetransmittedStreamFrame(maxBytes protocol.ByteCoun
|
|||
StreamID: s.streamID,
|
||||
Offset: s.writeOffset,
|
||||
DataLenPresent: true,
|
||||
FinBit: true,
|
||||
Fin: true,
|
||||
}, false
|
||||
}
|
||||
return nil, false
|
||||
|
@ -255,8 +255,8 @@ func (s *sendStream) popNewOrRetransmittedStreamFrame(maxBytes protocol.ByteCoun
|
|||
s.writeOffset += f.DataLen()
|
||||
s.flowController.AddBytesSent(f.DataLen())
|
||||
}
|
||||
f.FinBit = s.finishedWriting && s.dataForWriting == nil && s.nextFrame == nil && !s.finSent
|
||||
if f.FinBit {
|
||||
f.Fin = s.finishedWriting && s.dataForWriting == nil && s.nextFrame == nil && !s.finSent
|
||||
if f.Fin {
|
||||
s.finSent = true
|
||||
}
|
||||
return f, hasMoreData
|
||||
|
@ -283,14 +283,14 @@ func (s *sendStream) popNewStreamFrame(maxBytes, sendWindow protocol.ByteCount)
|
|||
}
|
||||
|
||||
f := wire.GetStreamFrame()
|
||||
f.FinBit = false
|
||||
f.Fin = false
|
||||
f.StreamID = s.streamID
|
||||
f.Offset = s.writeOffset
|
||||
f.DataLenPresent = true
|
||||
f.Data = f.Data[:0]
|
||||
|
||||
hasMoreData := s.popNewStreamFrameWithoutBuffer(f, maxBytes, sendWindow)
|
||||
if len(f.Data) == 0 && !f.FinBit {
|
||||
if len(f.Data) == 0 && !f.Fin {
|
||||
f.PutBack()
|
||||
return nil, hasMoreData
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue