python-hyper / hyper

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

Fix BufferedSocket capacity calculation #399

Open nkemnitz opened 5 years ago

nkemnitz commented 5 years ago

Resolves #398, by including _bytes_in_buffer into the _remaining_capacity calculation. Added test to illustrate the issue.