Closed itmisx closed 10 months ago
eg
ptmx.SetReadDeadline(time.Now().Add(time.Second))
ptmx.Read(buf)
i set the read deadline one second, but if there is no new msg, the read will always block
On what go version, what os/arch?
Note that v1.1.21 reverted the non-block behavior introduced by #167, all os are now blocking, which mean SetReadDeadline will not work.
While there is nothing we can do about windows, if you believe it is really important, maybe we could add an optional flag or a different public method to use non-block on OSX and Linux.
Closing for now as it is an expected behavior.
Would you have more details? context? way to reproduce?