From 0698c4969cc8688bc9979a8601656ccdc7a2e601 Mon Sep 17 00:00:00 2001 From: normal Date: Thu, 22 Nov 2018 20:02:36 +0000 Subject: socket: disable nonblocking-by-default on win32 Perhaps this fixes test failures reported by Greg and k0kubun. However, the failure of certain tests to handle non-blocking I/O seems to indicate pre-existing problems on win32 platforms. Somebody knowledgeable about win32 should be able to fix it. [ruby-core:89973] [ruby-core:89976] [ruby-core:89977] [Bug #14968] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@65929 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ext/socket/rubysocket.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'ext/socket/rubysocket.h') diff --git a/ext/socket/rubysocket.h b/ext/socket/rubysocket.h index bccea8732f..723f09a17c 100644 --- a/ext/socket/rubysocket.h +++ b/ext/socket/rubysocket.h @@ -26,7 +26,13 @@ # if defined(_MSC_VER) # undef HAVE_TYPE_STRUCT_SOCKADDR_DL # endif +/* + * FIXME: failures if we make nonblocking the default + * [ruby-core:89973] [ruby-core:89976] [ruby-core:89977] [Bug #14968] + */ +# define RSOCK_NONBLOCK_DEFAULT (0) #else +# define RSOCK_NONBLOCK_DEFAULT (1) # include # include # ifdef HAVE_NETINET_IN_SYSTM_H -- cgit v1.2.3