Closed ioquatix closed 10 months ago
It turns out that for sockets, eof? can block. In empty? we optimistically care about whether there is data or not, and don't want to block.
eof?
empty?
See https://bugs.ruby-lang.org/issues/20215 for more context.
It turns out that for sockets,
eof?
can block. Inempty?
we optimistically care about whether there is data or not, and don't want to block.See https://bugs.ruby-lang.org/issues/20215 for more context.
Types of Changes
Contribution