diff options
| author | Yusuke Endoh <mame@ruby-lang.org> | 2023-10-18 18:48:29 +0900 |
|---|---|---|
| committer | Yusuke Endoh <mame@ruby-lang.org> | 2023-10-24 12:22:53 +0900 |
| commit | 3dc311bdc8badb680267f5a10e0c467ddd9dfe4c (patch) | |
| tree | d1a853baf41ec43fdc28bf4653881850e7f5fe3a /include/ruby/encoding.h | |
| parent | efd58f19ea473ac34d27658997eee6af3521e1d9 (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/encoding.h')
0 files changed, 0 insertions, 0 deletions
