Bug report
Bug description:
Unlike http.client.HTTPResponse.read, read1 and readline do not raise IncompleteRead when the content length is know and a connection is closed before everything has been read.
FYI, these two methods have had a common issue in the past #113199.
CPython versions tested on:
3.8, 3.9, 3.10, 3.11, 3.12, 3.13, CPython main branch
Operating systems tested on:
Linux, macOS, Windows
Linked PRs
Bug report
Bug description:
Unlike
http.client.HTTPResponse.read,read1andreadlinedo not raiseIncompleteReadwhen the content length is know and a connection is closed before everything has been read.FYI, these two methods have had a common issue in the past #113199.
CPython versions tested on:
3.8, 3.9, 3.10, 3.11, 3.12, 3.13, CPython main branch
Operating systems tested on:
Linux, macOS, Windows
Linked PRs
HTTPResponse.read1andreadlineraiseIncompleteRead#115998