Skip to content

Add timeout to SSLSocket #342

@headius

Description

@headius

IO now has timeout and timeout= methods for timing out blocking operations, so we'll need to add it to SSLSocket as well.

Causes one failure in CRuby 4.0 tests:

OpenSSL::TestSSL#test_read_with_timeout [/home/runner/work/jruby/jruby/test/mri/openssl/utils.rb:277]:
exceptions on 1 threads:
#<Thread:0x7aad7df5 /home/runner/work/jruby/jruby/test/mri/openssl/utils.rb:251 dead>:
/home/runner/work/jruby/jruby/test/mri/openssl/test_ssl.rb:291:in 'block in test_read_with_timeout': undefined method 'timeout=' for an instance of OpenSSL::SSL::SSLSocket (NoMethodError)
	from /home/runner/work/jruby/jruby/test/mri/openssl/test_ssl.rb:2380:in 'server_connect'
	from /home/runner/work/jruby/jruby/test/mri/openssl/test_ssl.rb:286:in 'block in test_read_with_timeout'
	from /home/runner/work/jruby/jruby/test/mri/openssl/utils.rb:255:in 'block in start_server'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions