Skip to content

undefined method 'wait_readable' for #<OpenSSL::SSL::SSLSocket:0x00007feb9ebacc00> #697

Description

@lukasz-wojcik

5.0.3 version has just been released has been released. We have bumped the version of the gem automatically since that was a patch update and then experienced a NoMethodError

undefined method `wait_readable' for #<OpenSSL::SSL::SSLSocket:0x00007feb9ebacc00>

backtrace points to: /gems/http-5.0.3/lib/http/timeout/global.rb:38:

@socket.wait_readable(@time_left)

There is a change in that line in a following PR: #691

However in another place in a similar case the method wait_readable is called on io object not directly on socket:

rescue IO::WaitReadable
wait_readable_or_timeout

# Wait for a socket to become readable
def wait_readable_or_timeout
@socket.to_io.wait_readable(@time_left)
log_time
end

Activity

  1. added a commit that references this issue on Oct 7, 2021
    4382b5c
  2. tarcieri commented on Oct 7, 2021

    @tarcieri
    Member

    I believe this should do it: #698.

    It's unfortunate that this case isn't covered by the test suite.

  3. added a commit that references this issue on Oct 7, 2021
    1826b27
  4. tarcieri commented on Oct 7, 2021

    @tarcieri
    Member

    @lukasz-wojcik can you verify this fixes the problem? If it does, I can cut another release.

  5. ollym commented on Oct 7, 2021

    @ollym

    @tarcieri we had the same issue and just deployed master branch and it's fixed, from our perspective you're good to cut a new release.

  6. lukasz-wojcik commented on Oct 7, 2021

    @lukasz-wojcik
    Author

    From what I have checked the PR fixes this particular exception. Thx

  7. tarcieri commented on Oct 7, 2021

    @tarcieri
    Member

    Released in v5.0.4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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