commit | 90084a133dc9fef84bd8bb30bafa947941701515 | [log] [tgz] |
---|---|---|
author | Olivier Houchard <ohouchard@haproxy.com> | Thu Nov 23 18:21:29 2017 +0100 |
committer | Willy Tarreau <w@1wt.eu> | Thu Nov 23 19:35:28 2017 +0100 |
tree | ce3741bb8665d628ebe3470fa7a96fceb5577cf2 | |
parent | 51753458c419527eb706cc417692bda461df85a2 [diff] |
MINOR: ssl: Handle reading early data after writing better. It can happen that we want to read early data, write some, and then continue reading them. To do so, we can't reuse tmp_early_data to store the amount of data sent, so introduce a new member. If we read early data, then ssl_sock_to_buf() is now the only responsible for getting back to the handshake, to make sure we don't miss any early data.