From 703c1825ebcd2aa5ddd66847e93753d843d26575 Mon Sep 17 00:00:00 2001 From: usa Date: Mon, 10 Nov 2008 00:57:49 +0000 Subject: [PATCH] * win32/win32.c (ifs_open_socket): should retry without proto_buffer if cannot find the suitable protocol. a patch from Heesob Park. fixed [ruby-core:19713] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20166 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 6 ++++++ win32/win32.c | 2 ++ 2 files changed, 8 insertions(+) diff --git a/ChangeLog b/ChangeLog index 9d90ff94ce..68ad46b59c 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +Mon Nov 10 09:54:21 2008 NAKAMURA Usaku + + * win32/win32.c (ifs_open_socket): should retry without proto_buffer + if cannot find the suitable protocol. a patch from Heesob Park. + fixed [ruby-core:19713] + Sun Nov 9 13:04:52 2008 Yukihiro Matsumoto * struct.c (rb_struct_initialize_m): avoid unnecessary array diff --git a/win32/win32.c b/win32/win32.c index 50fd55d076..ae692ce9f0 100644 --- a/win32/win32.c +++ b/win32/win32.c @@ -2642,6 +2642,8 @@ open_ifs_socket(int af, int type, int protocol) WSA_FLAG_OVERLAPPED); break; } + if (out == INVALID_SOCKET) + out = WSASocket(af, type, protocol, NULL, 0, 0); } free(proto_buffers);