Uploaded image for project: 'Couchbase C client library libcouchbase'
  1. Couchbase C client library libcouchbase
  2. CCBC-843

Completion-based IO plugins leak memory and sockets

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Major
    • None
    • None
    • None
    • None

    Description

      Configuration monitor (HTTP) does not use aspend or anything else to signal lcb_t about pending operations, so it is not possible to wait for all operations to complete before calling lcb_destroy(). With completion IO, we cannot just release resources (memory and sockets) while we have pending operations, or the callback associated with request might write to deallocated memory. But also we cannot cancel requests as the IO API for completion-based plugins does not expose function to cancel pending requests.

      Attachments

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              avsej Sergey Avseyev
              avsej Sergey Avseyev
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are no open Gerrit changes

                  PagerDuty