Uploaded image for project: 'ZooKeeper'
  1. ZooKeeper
  2. ZOOKEEPER-2490

infinitely connect on windows

    XMLWordPrintableJSON

Details

    Description

      in addrvec_contains function
      this memcmp always return false on windows release build.

      for (i = 0; i < avec->count; i++)
      {
      if(memcmp(&avec->data[i], addr, INET_ADDRSTRLEN) == 0)
      return 1;
      }

      because..
      #define INET_ADDRSTRLEN 16 on linux.
      #define INET_ADDRSTRLEN 22 on windows.

      Attachments

        1. ZOOKEEPER-2490.patch
          0.4 kB
          spooky000
        2. ZOOKEEPER-2490.patch
          0.7 kB
          spooky000
        3. ZOOKEEPER-2490.patch
          0.7 kB
          spooky000

        Issue Links

          Activity

            People

              spooky000 spooky000
              spooky000 spooky000
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 10m
                  10m