1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
ruby--ruby/ext/socket
headius 0626d9b91c Fix #6154 by introducing new EAGAIN/EWOULDBLOCK/EINPROGRESS
subclasses that include WaitReadable or WaitWritable rather than
extending them into the exception object each time.

* error.c: Capture EGAIN, EWOULDBLOCK, EINPROGRESS exceptions and
  export them for use in WaitReadable/Writable exceptions.
* io.c: Create versions of EAGAIN, EWOULDBLOCK, EINPROGRESS that
  include WaitReadable and WaitWritable. Add rb_readwrite_sys_fail
  for nonblocking failures using those exceptions. Use that
  function in io_getpartial and io_write_nonblock instead of
  rb_mod_sys_fail
* ext/openssl/ossl_ssl.c: Add new SSLError subclasses that include
  WaitReadable and WaitWritable. Use those classes for
  write_would_block and read_would_block instead of rb_mod_sys_fail.
* ext/socket/ancdata.c: Use rb_readwrite_sys_fail instead of
  rb_mod_sys_fail in bsock_sendmsg_internal and
  bsock_recvmsg_internal.
* ext/socket/init.c: Use rb_readwrite_sys_fail instead of
  rb_mod_sys_fail in rsock_s_recvfrom_nonblock and
  rsock_s_connect_nonblock.
* ext/socket/socket.c: Use rb_readwrite_sys_fail instead of
  rb_mod_sys_fail in sock_connect_nonblock.
* include/ruby/ruby.h: Export rb_readwrite_sys_fail for use instead
  of rb_mod_sys_fail. Introduce new constants RB_IO_WAIT_READABLE and
  RB_IO_WAIT_WRITABLE for first arg to rb_readwrite_sys_fail.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40195 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-04-08 19:58:55 +00:00
..
lib * ext/socket/raddrinfo.c (rsock_unix_sockaddr_len): return 2013-01-31 04:59:31 +00:00
.document
addrinfo.h
ancdata.c Fix #6154 by introducing new EAGAIN/EWOULDBLOCK/EINPROGRESS 2013-04-08 19:58:55 +00:00
basicsocket.c socket/extconf.rb: RSTRING_SOCKLEN 2013-04-06 07:58:51 +00:00
constants.c constants.c: fix macro name 2013-04-08 15:28:43 +00:00
depend rb_thread_call_without_gvl 2012-07-10 13:57:11 +00:00
extconf.rb socket/extconf.rb: add -D 2013-04-08 17:44:35 +00:00
getaddrinfo.c * ext/socket/getaddrinfo.c (GET_AI): don't cast 1st argument for 2013-02-15 03:27:05 +00:00
getnameinfo.c * ext/socket/sockport.h (VALIDATE_SOCKLEN): new macro to validate 2013-02-14 15:17:49 +00:00
init.c Fix #6154 by introducing new EAGAIN/EWOULDBLOCK/EINPROGRESS 2013-04-08 19:58:55 +00:00
ipsocket.c * ext/socket: Improve socket exception message to show socket address. 2013-04-06 02:39:44 +00:00
mkconstants.rb * ext/socket/extconf.rb: Remove condition for bcc. 2013-04-04 14:25:19 +00:00
option.c option.c: fix macro name 2013-04-08 17:40:58 +00:00
raddrinfo.c socket/extconf.rb: RSTRING_SOCKLEN 2013-04-06 07:58:51 +00:00
rubysocket.h * ext/socket/socket.c (rsock_sys_fail_raddrinfo): Renamed from 2013-04-06 11:21:05 +00:00
socket.c Fix #6154 by introducing new EAGAIN/EWOULDBLOCK/EINPROGRESS 2013-04-08 19:58:55 +00:00
sockport.h * ext/socket/extconf.rb: test struct sockaddr_un and its member, 2013-02-15 22:19:05 +00:00
sockssocket.c
tcpserver.c * ext/socket/tcpserver.c: Grammar for TCPServer.new from r39554 2013-03-02 22:34:29 +00:00
tcpsocket.c socket: ai_addrlen is socklen_t 2013-02-15 07:54:38 +00:00
udpsocket.c * ext/socket: Improve socket exception message to show socket address. 2013-04-06 02:39:44 +00:00
unixserver.c
unixsocket.c * ext/socket: Improve socket exception message to show socket address. 2013-04-06 02:39:44 +00:00