lib/async/io/peer.rb in async-io-1.27.4 vs lib/async/io/peer.rb in async-io-1.27.5
- old
+ new
@@ -41,9 +41,17 @@
rescue Errno::ECONNRESET
# This might be thrown by recv_nonblock.
return false
end
+ def eof
+ !connected?
+ end
+
+ def eof?
+ !connected?
+ end
+
# Best effort to set *_NODELAY if it makes sense. Swallows errors where possible.
def sync=(value)
super
case self.protocol