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

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

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 3.4.2, 3.3.5
    • 3.4.4, 3.5.0
    • c client
    • None
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: