Uploaded image for project: 'Couchbase Server'
  1. Couchbase Server
  2. MB-26887

Use libevent's bufferevent API

    XMLWordPrintable

Details

    • Task
    • Resolution: Fixed
    • Major
    • 7.0.0
    • 5.5.0
    • memcached
    • None

    Description

      Migrate from the low-level libevent API to the higher-level eventbuffer API. This brings a number of advantages:

      • Simplification of our connection management including buffer management. This includes the potential fewer copies of data to/from buffers to the underlying socket.
      • Reduced syscalls - with libevent managing the TCP send buffers, it can coalesce multiple chunks of data to be sent out into a single sendmsg syscall etc.
      • Simplification of TLS state machine handling - eventbuffer API has native support for TLS so we can simply delegate to that API and remove our own TLS statemachine.

      Attachments

        Issue Links

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

          Activity

            People

              trond Trond Norbye
              trond Trond Norbye
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes

                  PagerDuty