News for hackers. Stuff that matters.
Re:On incomplete HTTP reads and the requests library in Python by batbomb on Sunday April 22, 2018 @04:55PM (#16898524)
Isn’t the chunk the unit, why should it be unbounded m? You’d have issues on the client side without knowing how long a chunk is going to be - It seems like the chunk should be the unit which can be guaranteed to fit in memory on the client.
Re:On incomplete HTTP reads and the requests library in Python by cryptonector on Sunday April 22, 2018 @05:59PM (#16898845)
Chunked transfer encoding means that the sender sends <length>\r\n<chunk-of-that-length>\r\n... but each chunk can be of different length. A zero-length chunk terminates the transfer.

Chunked transfer encoding is used when the sender doesn't yet know the length of the resource's representation.