From: v.ondruch@... Date: 2017-01-03T09:20:55+00:00 Subject: [ruby-core:78948] [Ruby trunk Bug#13097] Deprecate Socket.gethostbyaddr and Socket.gethostbyname Issue #13097 has been updated by Vit Ondruch. If nothing else, I would consider right if documentation discouraged their use ... ---------------------------------------- Bug #13097: Deprecate Socket.gethostbyaddr and Socket.gethostbyname https://bugs.ruby-lang.org/issues/13097#change-62366 * Author: Vit Ondruch * Status: Open * Priority: Normal * Assignee: * Target version: * ruby -v: ruby 2.4.0p0 (2016-12-24 revision 57164) [x86_64-linux-gnu] * Backport: 2.2: UNKNOWN, 2.3: UNKNOWN, 2.4: UNKNOWN ---------------------------------------- Is there a reason to keep these methods around? They were marked obsolete by POSIX.1-2001 and the POSIX.1-2008 removes the specifications of gethostbyname, gethostbyaddr recommending the use of getaddrinfo and getnameinfo instead. If they are kept because of Ruby backward compatibility, shouldn't they be re-implemented by these modern interfaces? -- https://bugs.ruby-lang.org/ Unsubscribe: