Uploaded image for project: 'Thrift'
  1. Thrift
  2. THRIFT-2539

Tsocket.cpp addrinfo ai_flags = AI_ADDRCONFIG

    XMLWordPrintableJSON

Details

    • Question
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.9.1
    • 0.9.2
    • None
    • None

    Description

      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.

      Attachments

        1. AI_ADDRCONFIG.patch
          1.0 kB
          Randy Abernethy
        2. THRIFT-2539-fix-for-windows-cpp.patch
          0.8 kB
          Michał Gazda
        3. THRIFT-2539-my-new-feature.patch
          0.7 kB
          Michał Gazda
        4. TSocket.cpp
          22 kB
          Michał Gazda

        Activity

          People

            codesf Randy Abernethy
            michal.gazda Michał Gazda
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: