[ https://issues.apache.org/jira/browse/THRIFT-2539?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14008315#comment-14008315 ]
Randy Abernethy commented on THRIFT-2539: ----------------------------------------- Hi Michael, Just looked at the file you uploaded and I see the AI_ADDRCONFIG diff and understand your issue. I think Windows first started paying attention to AI_ADDRCONFIG in getaddrinfo with Vista so that explains your success on XP and failure on W7. AI_ADDRCONFIG has been set since 2007. git blame ... 256bdc44 lib/cpp/src/transport/TSocket.cpp (Mark Slee 2007-11-27 08:42:19 +0000 376) hints.ai_flags = AI_PASSIVE | AI_ADDRCONFIG; So forever practically. I will try to carve out time to make a reasonable patch in the next few days to see if we can get you operable again with localhost without breaking anything else. If you would like to put together at patch please feel free, I will happily review it. Best, Randy > 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: 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)