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

Try to use a single buffer for small GET responses over SSL

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Fixed
    • Major
    • 6.5.0
    • 5.0.0, 5.0.1, 5.1.0, 5.1.1, 5.1.2, 5.1.3, 5.5.0, 5.5.1, 5.5.2, 5.5.3, 5.5.4, 5.5.5, 5.5.6, 6.0.0, 6.0.1, 6.0.2, 6.0.3, 6.5.0
    • memcached

    Description

      The Get response looks like:

         +-------------------------------+
         |       24 byte header          |
         +-------------------------------+
         |        4 byte flags           |
         +-------------------------------+
         |  n bytes key (if requested)   |
         +-------------------------------+
         |        n byte value           |
         +-------------------------------+
      

      And is built up by using addIov. Each IOV end up in one or more TLS frames (with all of the disadvantages: extra CPU usage, extra network overhead etc). As an optimization we could copy all of the data into another buffer if the payload is small and end up with a single TLS frame on the wire.

      Attachments

        For Gerrit Dashboard: MB-36027
        # Subject Branch Project Status CR V

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty