Enabling SSL session for Jetty to speed up HTTPS requests

后端 未结 1 1240
深忆病人
深忆病人 2021-01-28 17:31

This is a follow up of my question here, where I found a big query time differences with HTTPS vs. HTTP requests: the larger the distance to the server was the bigger was this d

1条回答
  •  温柔的废话
    2021-01-28 17:49

    I'm not quite sure what you're actually asking for. Well HTTPS will always be slower than HTTP as it has more overhead.

    However there's things you can probably do to reduce the response times. For example most Operating Systems are using a too small tcp initial congestion size. This leads to an additional roundtrip just for the TCP handshake. As the roundtriptime is usually somewhere between 20ms and up to several seconds (slow network to a server overseas) this can severly improve the time taken to establish a ssl connection.

    Have a look at https://lwn.net/Articles/427104/ for linux systems. Kernels >2.6.39 or >3.x should do.

    0 讨论(0)
提交回复
热议问题