Project

General

Profile

Actions

Feature #17370

closed

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

Added by ioquatix (Samuel Williams) almost 2 years ago. Updated 6 months ago.

Status:
Closed
Priority:
Normal
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 2 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 2 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 1 year ago

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

Updated by ioquatix (Samuel Williams) 6 months ago

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

Actions #6

Updated by ioquatix (Samuel Williams) 6 months ago

  • Status changed from Assigned to Closed
Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0Like0