The behavior of setting O_NONBLOCK is by spec undefined, and poorly documented where attempts are made to define a platforms behavior. More importantly, it contradicts the intent of the io.Reader interface and causes major idle cost for most common usage patterns.
The behavior of setting O_NONBLOCK is by spec undefined, and poorly documented where attempts are made to define a platforms behavior. More importantly, it contradicts the intent of the io.Reader interface and causes major idle cost for most common usage patterns.