From c9447082ecbcab5dab9dcbcaa93686648008d8f8 Mon Sep 17 00:00:00 2001 From: nobu Date: Thu, 23 Feb 2017 02:40:17 +0000 Subject: Revert r57690 except for read_nonblock https://github.com/ruby/ruby/pull/1527#issuecomment-281867551 git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57694 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ext/socket/lib/socket.rb | 27 +++++++++------------------ 1 file changed, 9 insertions(+), 18 deletions(-) (limited to 'ext/socket') diff --git a/ext/socket/lib/socket.rb b/ext/socket/lib/socket.rb index ec9a52c..ad7d1e7 100644 --- a/ext/socket/lib/socket.rb +++ b/ext/socket/lib/socket.rb @@ -315,8 +315,7 @@ class BasicSocket < IO # # By specifying a keyword argument _exception_ to +false+, you can indicate # that sendmsg_nonblock should not raise an IO::WaitWritable exception, but - # return the symbol +:wait_writable+ instead. At EOF, it will return +nil+ - # instead of raising EOFError. + # return the symbol +:wait_writable+ instead. def sendmsg_nonblock(mesg, flags = 0, dest_sockaddr = nil, *controls, exception: true) __sendmsg_nonblock(mesg, flags, dest_sockaddr, controls, exception) @@ -364,8 +363,7 @@ class BasicSocket < IO # # By specifying a keyword argument _exception_ to +false+, you can indicate # that recv_nonblock should not raise an IO::WaitReadable exception, but - # return the symbol +:wait_readable+ instead. At EOF, it will return +nil+ - # instead of raising EOFError. + # return the symbol +:wait_readable+ instead. # # === See # * Socket#recvfrom @@ -439,8 +437,7 @@ class BasicSocket < IO # # By specifying a keyword argument _exception_ to +false+, you can indicate # that recvmsg_nonblock should not raise an IO::WaitReadable exception, but - # return the symbol +:wait_readable+ instead. At EOF, it will return +nil+ - # instead of raising EOFError. + # return the symbol +:wait_readable+ instead. def recvmsg_nonblock(dlen = nil, flags = 0, clen = nil, scm_rights: false, exception: true) __recvmsg_nonblock(dlen, flags, clen, scm_rights, exception) @@ -517,8 +514,7 @@ class Socket < BasicSocket # # By specifying a keyword argument _exception_ to +false+, you can indicate # that recvfrom_nonblock should not raise an IO::WaitReadable exception, but - # return the symbol +:wait_readable+ instead. At EOF, it will return +nil+ - # instead of raising EOFError. + # return the symbol +:wait_readable+ instead. # # === See # * Socket#recvfrom @@ -575,8 +571,7 @@ class Socket < BasicSocket # # By specifying a keyword argument _exception_ to +false+, you can indicate # that accept_nonblock should not raise an IO::WaitReadable exception, but - # return the symbol +:wait_readable+ instead. At EOF, it will return +nil+ - # instead of raising EOFError. + # return the symbol +:wait_readable+ instead. # # === See # * Socket#accept @@ -1195,8 +1190,7 @@ class Socket < BasicSocket # # By specifying a keyword argument _exception_ to +false+, you can indicate # that connect_nonblock should not raise an IO::WaitWritable exception, but - # return the symbol +:wait_writable+ instead. At EOF, it will return +nil+ - # instead of raising EOFError. + # return the symbol +:wait_writable+ instead. # # === See # # Socket#connect @@ -1254,8 +1248,7 @@ class UDPSocket < IPSocket # # By specifying a keyword argument _exception_ to +false+, you can indicate # that recvfrom_nonblock should not raise an IO::WaitReadable exception, but - # return the symbol +:wait_readable+ instead. At EOF, it will return +nil+ - # instead of raising EOFError. + # return the symbol +:wait_readable+ instead. # # === See # * Socket#recvfrom @@ -1296,8 +1289,7 @@ class TCPServer < TCPSocket # # By specifying a keyword argument _exception_ to +false+, you can indicate # that accept_nonblock should not raise an IO::WaitReadable exception, but - # return the symbol +:wait_readable+ instead. At EOF, it will return +nil+ - # instead of raising EOFError. + # return the symbol +:wait_readable+ instead. # # === See # * TCPServer#accept @@ -1338,8 +1330,7 @@ class UNIXServer < UNIXSocket # # By specifying a keyword argument _exception_ to +false+, you can indicate # that accept_nonblock should not raise an IO::WaitReadable exception, but - # return the symbol +:wait_readable+ instead. At EOF, it will return +nil+ - # instead of raising EOFError. + # return the symbol +:wait_readable+ instead. # # === See # * UNIXServer#accept -- cgit v1.1