Project

General

Profile

Actions

Backport #3794

closed

test/openssl/test_ssl.rb hungs on mswin32_100

Added by arton (Akio Tajima) about 14 years ago. Updated over 13 years ago.

Status:
Closed
[ruby-dev:42188]

Description

=begin
opensslがWinSockのerrnoを変換していないため、rb_io_wait_readableがEWOULDBLOCKと認識せずスレッドの切り替えが行われません。
パッチです。

--- ossl_ssl.c.org 2010-09-06 19:45:34.000000000 +0900
+++ ossl_ssl.c 2010-09-06 19:46:27.000000000 +0900
@@ -1018,7 +1018,7 @@ ossl_ssl_setup(VALUE self)
}

#ifdef _WIN32
-#define ssl_get_error(ssl, ret) (errno = WSAGetLastError(), SSL_get_error(ssl, ret))
+#define ssl_get_error(ssl, ret) (errno = rb_w32_map_errno(WSAGetLastError()), SSL_get_error(ssl, ret))
#else
#define ssl_get_error(ssl, ret) SSL_get_error(ssl, ret)
#endif
=end


Related issues 1 (0 open1 closed)

Related to Ruby master - Bug #3798: ruby 1.9.2 + OpenSSL 1.0.0.a on Windows 64 test hang .....Closednahi (Hiroshi Nakamura)09/07/2010Actions
Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0Like0Like0Like0Like0