Skip to content

Conversation

seanmonstar
Copy link
Member

An HTTP/2 stream may include a set of headers, and a flag signalling
END-STREAM, even if a content-length isn't included. hyper wouldn't
notice, and so the Body would report a size-hint of 0..MAX. hyper
now notices that the stream is ended, and couldn't possibly include any
bytes for the body, and thus will give a size-hint of 0 exactly.

Closes #2712

@seanmonstar seanmonstar force-pushed the http2-eos-body-size-hint branch from 031b44e to c4745f6 Compare December 6, 2021 18:49
…mpty

An HTTP/2 stream may include a set of headers, and a flag signalling
END-STREAM, even if a `content-length` isn't included. hyper wouldn't
notice, and so the `Body` would report a size-hint of `0..MAX`. hyper
now notices that the stream is ended, and couldn't possibly include any
bytes for the body, and thus will give a size-hint of `0` exactly.
@seanmonstar seanmonstar force-pushed the http2-eos-body-size-hint branch from c4745f6 to 84935ec Compare December 6, 2021 21:33
@seanmonstar seanmonstar merged commit 84b78b6 into master Dec 6, 2021
@seanmonstar seanmonstar deleted the http2-eos-body-size-hint branch December 6, 2021 22:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

body size

1 participant