| От | Tom Lane |
|---|---|
| Тема | Re: freeaddrinfo2 changes. |
| Дата | |
| Msg-id | 18560.1055179509@sss.pgh.pa.us обсуждение |
| Ответ на | Re: freeaddrinfo2 changes. (Kurt Roeckx <Q@ping.be>) |
| Список | pgsql-hackers |
Kurt Roeckx <Q@ping.be> writes:
>> If this is broken then it's probably not the only problem --- we rely on
>> sa.sa_family in other places.
> sa.sa_family is not the problem itself, the problem is that if
> you use getaddrinfo with AF_UNSPEC, you can get more than replies
> with more than 1 address family. You will get atleast AF_INET,
> AF_INET6 if they exist for what you request, and maybe AF_UNIX or
> even others.
Oh, I see --- the problem is to tell the difference between an AF_UNIX
addrinfo built by getaddrinfo_unix and one returned by the system's
getaddrinfo. Okay.
regards, tom lane
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера