python-hyper / hyper

HTTP/2 for Python.
http://hyper.rtfd.org/en/latest/
MIT License
1.05k stars 191 forks source link

read() vs read(amt) delay vs requests lib #374

Closed deshmukhrajvardhan closed 6 years ago

deshmukhrajvardhan commented 6 years ago

Hi All, I observed that read(amt) called recursively takes longer time than read(). Is this behavior as expected?

I compared this to requests iter_contents(amt) and found that this method takes same time irrespective of amt .

Is this difference because of flushing the buffer step of hyper ?