don't split off empty StreamFrames in streamFramer

fixes #284
This commit is contained in:
Marten Seemann 2016-08-17 18:04:33 +07:00
parent d23df8addd
commit f1da2239ca
No known key found for this signature in database
GPG key ID: 3603F40B121FCDEA
3 changed files with 33 additions and 2 deletions

View file

@ -48,7 +48,7 @@ func (f *streamFramer) maybePopFramesForRetransmission(maxLen protocol.ByteCount
frame.DataLenPresent = true
frameHeaderLen, _ := frame.MinLength(protocol.VersionWhatever) // can never error
if currentLen+frameHeaderLen > maxLen {
if currentLen+frameHeaderLen >= maxLen {
break
}