mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* ext/openssl/lib/openssl/ssl.rb (OpenSSL::Nonblock#initialize):
native win32 platform doesn't have F_GETFL. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7977 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
ee51586eda
commit
2048950e16
2 changed files with 7 additions and 1 deletions
|
@ -1,3 +1,8 @@
|
|||
Wed Feb 16 15:11:43 2005 GOTOU Yuuzou <gotoyuzo@notwork.org>
|
||||
|
||||
* ext/openssl/lib/openssl/ssl.rb (OpenSSL::Nonblock#initialize):
|
||||
native win32 platform doesn't have F_GETFL.
|
||||
|
||||
Wed Feb 16 02:47:45 2005 GOTOU Yuuzou <gotoyuzo@notwork.org>
|
||||
|
||||
* ext/openssl/ossl_ssl.c (ossl_ssl_read, ossl_ssl_write): should
|
||||
|
|
|
@ -52,7 +52,8 @@ module OpenSSL
|
|||
|
||||
module Nonblock
|
||||
def initialize(*args)
|
||||
flag = @io.fcntl(Fcntl::F_GETFL) | File::NONBLOCK
|
||||
flag = File::NONBLOCK
|
||||
flag |= @io.fcntl(Fcntl::F_GETFL) if defined?(Fcntl::F_GETFL)
|
||||
@io.fcntl(Fcntl::F_SETFL, flag)
|
||||
super
|
||||
end
|
||||
|
|
Loading…
Add table
Reference in a new issue