* 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
This commit is contained in:
usa 2008-11-10 00:57:49 +00:00
Родитель b916aa3ff8
Коммит 703c1825eb
2 изменённых файлов: 8 добавлений и 0 удалений

Просмотреть файл

@ -1,3 +1,9 @@
Mon Nov 10 09:54:21 2008 NAKAMURA Usaku <usa@ruby-lang.org>
* 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 <matz@ruby-lang.org> Sun Nov 9 13:04:52 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
* struct.c (rb_struct_initialize_m): avoid unnecessary array * struct.c (rb_struct_initialize_m): avoid unnecessary array

Просмотреть файл

@ -2642,6 +2642,8 @@ open_ifs_socket(int af, int type, int protocol)
WSA_FLAG_OVERLAPPED); WSA_FLAG_OVERLAPPED);
break; break;
} }
if (out == INVALID_SOCKET)
out = WSASocket(af, type, protocol, NULL, 0, 0);
} }
free(proto_buffers); free(proto_buffers);