faraday icon indicating copy to clipboard operation
faraday copied to clipboard

[drain] would loop infinitely if no bytes were currently pending.

Open dhouse-js opened this issue 3 years ago • 1 comments

This PR fixes this and adds some tests for the [drain] function.

dhouse-js avatar Jun 25 '21 10:06 dhouse-js

It might be better just rename this close_and_drain and perform the close at the top of the function.

seliopou avatar Jul 05 '21 20:07 seliopou