Welcome! Log In Create A New Profile

Advanced

Re: ssl session id and spdy/http2 traffic

Maxim Dounin
June 14, 2016 10:30AM
Hello!

On Mon, Jun 13, 2016 at 03:00:16AM -0400, gitl wrote:

> I have noticed that the variables ssl_session_id and ssl_session_reused are
> always empty for http2 traffic (and for spdy before that). Under http 1.1
> they are set as expected and documented.
> What's the reason for this? Why not list the ID of the single connection
> that is used for the multiplexing?
> A big reason why I am logging both variables is to make sure that ssl
> connections are being reused for http2 and to be able to check if the ssl
> cache
> overruns. If the those two variables are not available, what do you suggest
> to use instead?

The $ssl_session_id and $ssl_session_reused variables are
available with HTTP/2 much like with normal HTTP. There are
couple of nuances though:

- $ssl_session_id is not available when using session tickets, at
least till a session is actually reused, see detailed
explanation at http://trac.nginx.org/nginx/ticket/927#comment:1;

- in HTTP/2 connections are usually kept open for a long time, and you
aren't likely to see actual SSL session reuse due to this - in most
cases you will see just another request in an already opened
connection.

--
Maxim Dounin
http://nginx.org/

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

ssl session id and spdy/http2 traffic

gitl June 13, 2016 03:00AM

Re: ssl session id and spdy/http2 traffic

Maxim Dounin June 14, 2016 10:30AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 267
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready