Project

General

Profile

Actions

Feature #17370

closed

Introduce non-blocking `Addrinfo.getaddrinfo` and related methods.

Added by ioquatix (Samuel Williams) almost 4 years ago. Updated over 2 years ago.

Status:
Closed
Target version:
-
[ruby-core:101251]

Description

We would like to introduce a new scheduler hook for non-blocking getaddrinfo.

class Scheduler
  def address_resolve(...)
    [array of addrinfo objects]
  end

https://github.com/bruno-/ruby/pull/1

This is a work in progress.

Updated by ioquatix (Samuel Williams) almost 4 years ago

In order to implement this hook, we need to expose the C interface to extensions:

https://github.com/ruby/ruby/pull/3945

Actions #2

Updated by jeremyevans0 (Jeremy Evans) almost 4 years ago

  • Tracker changed from Bug to Feature
  • Backport deleted (2.5: UNKNOWN, 2.6: UNKNOWN, 2.7: UNKNOWN)

Updated by ioquatix (Samuel Williams) over 3 years ago

This was merged and basic testing seems to work well. More evaluation is required.

Updated by ioquatix (Samuel Williams) over 2 years ago

This is working as expected, we have implemented it in the async gem.

Actions #6

Updated by ioquatix (Samuel Williams) over 2 years ago

  • Status changed from Assigned to Closed
Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0Like0