From 2b9ff2cf5d26abde03f8f2ebea0a423145d0c2d7 Mon Sep 17 00:00:00 2001 From: "Steinar H. Gunderson" Date: Sun, 8 Jul 2018 19:44:07 +0200 Subject: [PATCH] Fix that HTTP keepalive information would get lost across exec(), which could lead on crashes when a client had to skip data. --- client.cpp | 4 ++++ state.proto | 2 ++ 2 files changed, 6 insertions(+) diff --git a/client.cpp b/client.cpp index d7bec09..2552c69 100644 --- a/client.cpp +++ b/client.cpp @@ -59,6 +59,8 @@ Client::Client(const ClientProto &serialized, const vector *short_respo serialized.set_bytes_sent(bytes_sent); serialized.set_bytes_lost(bytes_lost); serialized.set_num_loss_events(num_loss_events); + serialized.set_http_11(http_11); + serialized.set_close_after_response(close_after_response); if (tls_context != nullptr) { bool small_version = false; diff --git a/state.proto b/state.proto index 90d86e4..290c0ff 100644 --- a/state.proto +++ b/state.proto @@ -23,6 +23,8 @@ message ClientProto { optional int64 tls_output_bytes_already_consumed = 18; optional bool in_ktls_mode = 19; optional bytes x_playback_session_id = 22; + optional bool close_after_response = 23; + optional bool http_11 = 24; }; // Corresponds to struct Stream::FragmentStart. -- 2.39.2