From: "jaruga (Jun Aruga) via ruby-core" Date: 2024-05-06T13:29:20+00:00 Subject: [ruby-core:117780] [Ruby master Feature#17944] Remove Socket.gethostbyaddr and Socket.gethostbyname Issue #17944 has been updated by jaruga (Jun Aruga). The commit for the deprecated documents was added in 2017. Deprecation document for gethostbyname,gethostbyaddr. https://github.com/ruby/ruby/commit/b5c6fc856100b17b6f20e6e792a02ee7e33306bc Date: Sat Oct 21 13:13:02 2017 +0000 The commit for printng warning messages was added in 2020. Show deprecation warning on Socket.gethostbyname and Socket.gethostbyaddr https://github.com/ruby/ruby/commit/6d946665bd79a93fb98b2d25400d1b6174472302 Date: Sat Aug 29 17:18:59 2020 +0900 If we are hesitate to drop the functions, we may be able to drop the functions conditionally with the configure option(s) like this. ``` $ ./configure --disable-gethostbyname --disable-gethostbyaddr ``` or ``` $ ./configure --disable-gethostbyname-and-addr ``` ---------------------------------------- Feature #17944: Remove Socket.gethostbyaddr and Socket.gethostbyname https://bugs.ruby-lang.org/issues/17944#change-108188 * Author: pvalena (Pavel Valena) * Status: Open ---------------------------------------- It is marked as unsafe by our static analysis. Can it be removed now? It was deprecated in: https://bugs.ruby-lang.org/projects/ruby-master/repository/trunk/revisions/60266 https://bugs.ruby-lang.org/issues/13097 -- https://bugs.ruby-lang.org/ ______________________________________________ ruby-core mailing list -- ruby-core@ml.ruby-lang.org To unsubscribe send an email to ruby-core-leave@ml.ruby-lang.org ruby-core info -- https://ml.ruby-lang.org/mailman3/postorius/lists/ruby-core.ml.ruby-lang.org/