Hi Michael, Can't say much about that particular flag, but regarding the rest I guess both questions can be clearly answered with a big "No". Thrift is about *enabling* communication between languages and platforms. And for sure there was no intention ever to let it behave differently on XP and Win7, for whatever reason the flag has been introduced.
Have fun, JensG ________________________________ Von: Michał Gazda (JIRA) Gesendet: 02.06.2014 08:48 An: dev@thrift.apache.org Betreff: [jira] [Commented] (THRIFT-2539) Tsocket.cpp addrinfo ai_flags = AI_ADDRCONFIG [ https://issues.apache.org/jira/browse/THRIFT-2539?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14015207#comment-14015207 ] Michał Gazda commented on THRIFT-2539: -------------------------------------- Hello, thank you for your reply. I took a look on a RFC 3493 and your proposition above. I could use solution proposed but I just would like to understand why this flag is there. Is it intentional that thrift communication based solutions should not be able to communicate on the machine which has no network adapter configured with any network? Additionally it works differently in XP and win 7 and I don't know if it was also intentional? Greetings, Michal > Tsocket.cpp addrinfo ai_flags = AI_ADDRCONFIG > --------------------------------------------- > > Key: THRIFT-2539 > URL: https://issues.apache.org/jira/browse/THRIFT-2539 > Project: Thrift > Issue Type: Question > Affects Versions: 0.9.1 > Reporter: Michał Gazda > Assignee: Randy Abernethy > Attachments: THRIFT-2539-my-new-feature.patch, TSocket.cpp > > > While creating and using thrift based app we have found some problem on > windows 7 which was not present on winxp. When we try to open socket with > local_open() for the host name "localhost" getaddrinfo fails with 11004. What > is important we do not have any physical network address as all network cards > are disabled in the system. As I assume it is connected wit he flag > AI_ADDRCONFIG. Why it is set by default? I wonder if I do remove it can it > cause some problems? I would like our app to be able to communicate locally > even if there is no external network available. > Hope to get quick reply, thank you. -- This message was sent by Atlassian JIRA (v6.2#6252)