ekr / minq

A simple Go implementation of QUIC
MIT License
98 stars 16 forks source link

Blocking I/O #46

Closed martinthomson closed 6 years ago

martinthomson commented 6 years ago

When minq runs out of data, it returns an error (minq.ErrWouldBlock). This makes the API hard to consume in go.

All native uses of io.Reader block. Many uses don't care much, but if you use io.Copy(), or ioutil.ReadAll() this distinction matters.

This isn't a big deal. I've worked around this by wrapping minq.Stream.

martinthomson commented 6 years ago

I have a wrapper. It's a horrorshow, but it works.