summaryrefslogtreecommitdiff
path: root/include/ruby/debug.h
diff options
context:
space:
mode:
authorYusuke Endoh <mame@ruby-lang.org>2023-10-18 18:48:29 +0900
committerYusuke Endoh <mame@ruby-lang.org>2023-10-24 12:22:53 +0900
commit3dc311bdc8badb680267f5a10e0c467ddd9dfe4c (patch)
treed1a853baf41ec43fdc28bf4653881850e7f5fe3a /include/ruby/debug.h
parentefd58f19ea473ac34d27658997eee6af3521e1d9 (diff)
Make rb_getaddrinfo interruptible
When pthread_create is available, rb_getaddrinfo creates a pthread and executes getaddrinfo(3) in it. The caller thread waits for the pthread to complete, but detaches it if interrupted. This allows name resolution to be interuppted by Timeout.timeout, etc. even if it takes a long time (for example, when the DNS server does not respond). [Feature #19965]
Diffstat (limited to 'include/ruby/debug.h')
0 files changed, 0 insertions, 0 deletions