Skip to content
instance method

BasicSocket#close_read

() -> void
basicsocket.close_read => nil

Disallows further read using shutdown system call.

Example
s1, s2 = UNIXSocket.pair
s1.close_read
s2.puts #=> Broken pipe (Errno::EPIPE)