pcwalton / rust-media

A free, comprehensive, and portable video/audio streaming library for Rust
Apache License 2.0
787 stars 57 forks source link

Pass `IoError` up wherever reading happens #13

Open pcwalton opened 9 years ago

pcwalton commented 9 years ago

To scale up to many simultaneous videos, we want to use async I/O. So we need to set the sockets to nonblocking and propagate up EWOULDBLOCK so that the codec will be able to resume when there's not enough data read.