Uploaded image for project: 'Ruby Driver'
  1. Ruby Driver
  2. RUBY-2462

Change timeout_interrupt to use strerrorname_np/strerrordesc_np over sys_errlist where available

    • Type: Icon: Improvement Improvement
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • Fully Compatible

      On the latest master 1f655b864f280593dd1f0367e66ee9a2c6bb0f44 ,

      I see "require 'timeout_interrupt'" is called.

      spec/lite_spec_helper.rb

      if SpecConfig.instance.mri?
        require 'timeout_interrupt'
      else
        require 'timeout'
        TimeoutInterrupt = Timeout
      end
      

      However the part outputs an error on my Fedora 34 and 33 environment when running the spec.

      Here are the tickets I opened to the upstream projects.
      https://github.com/DenisKnauf/ruby-timeout-interrupt/issues/5
      https://github.com/postmodern/ffi-libc/issues/6

      It's great if Mongo Ruby driver have a temporary workaround to avoid the code when running the spec.

      Thanks.

            Assignee:
            Unassigned Unassigned
            Reporter:
            jaruga@redhat.com Jun Aruga
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: