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

C client: socket leak after receive timeout in zookeeper_interest()

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.4.2, 3.3.5
    • Fix Version/s: 3.4.4, 3.5.0
    • Component/s: c client
    • Labels:
      None
    • Hadoop Flags:
      Reviewed

      Description

      In zookeeper_interest(), we set zk->fd to -1 without closing it when timeout happens. Instead we should let handle_socket_error_msg() function take care of closing the socket properly.

      --Michi

        Attachments

        1. ZOOKEEPER-1494-3.4.patch
          0.8 kB
          Michi Mutsuzaki
        2. ZOOKEEPER-1494.patch
          0.8 kB
          Michi Mutsuzaki
        3. ZOOKEEPER-1494.patch
          0.8 kB
          Mahadev konar

          Activity

            People

            • Assignee:
              michim Michi Mutsuzaki
              Reporter:
              michim Michi Mutsuzaki
            • Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: