Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-30771

HTTP layer: add API to pre-allocate a socket / pre-SSL handshake

    XMLWordPrintable

    Details

    • Technical Risk:
      Normal
    • Commits:
      1c901913c0af79b2bbde1b9da71f5267cb4fc76a

      Description

      API to pre-DNS lookup is already there. If it is known that an app will contact 1 server and later another one, latency could be reduced by starting an SSL handshake to the 2nd server before the resource is requested.

      E.g. the 1st request from any Facebook app will go to graph.facebook.com, but consecutive requests will be loaded from a static image server. We could connect the socket to the image server right after sending the request to graph.facebook.com, and have it setup when the request to it is going out (because the 1st request will probably return some JSON containing links to other servers).

      Also pre-allocating more sockets to the same server (for Facebook: graph.facebook.com) should give performance benefits.

        Attachments

          Issue Links

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

            Activity

              People

              Assignee:
              peter-har Peter Hartmann
              Reporter:
              peter-har Peter Hartmann
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Gerrit Reviews

                  There are no open Gerrit changes