From fw at ferncast.de Mon Mar 2 10:54:15 2020 From: fw at ferncast.de (Florian Wickert) Date: Mon, 2 Mar 2020 09:54:15 +0100 Subject: [rtmpdump] [PATCH] replace gethostbyname with getaddrinfo In-Reply-To: <4cdfd975a83c4d41f5effb59b228af3c59642d31.camel@infradead.org> References: <7261f340-9c3b-f084-1659-a23c0aad0d7d@ferncast.de> <4cdfd975a83c4d41f5effb59b228af3c59642d31.camel@infradead.org> Message-ID: Thats right, getaddrinfo also supports IPv6 but my patch is only a drop-in replacement to fix threading problems. Due to a serious lack of time I have to leave this to someone else unfortunately. On 2/28/20 1:13 PM, David Woodhouse wrote: > On Thu, 2020-01-30 at 12:29 +0100, Florian Wickert wrote: >> From c8bbf52e7a46ab238da1bd59d2afb98f6b46359c Mon Sep 17 00:00:00 >> 2001 >> From: Florian Wickert >> Date: Thu, 30 Jan 2020 10:47:19 +0100 >> Subject: [PATCH 1/1] replace gethostbyname with getaddrinfo >> >> getaddrinfo is guaranteed to be thread-safe in contrast to >> gethostbyname. > It also allows us to support IPv6, but I note your patch doesn't do > that. Could it? > > This year marks the 25th anniversary of the publication of RFC1883, so > it would only be a quarter of a century behind the times... :) -- Florian Wickert, M.Sc. Ferncast GmbH Gallierstr. 41a, 52074 Aachen Germany Phone: +49 241 99034567 Web: www.ferncast.de