aboutsummaryrefslogtreecommitdiffstats
path: root/lib/ssl/src/ssl_connection.hrl
diff options
context:
space:
mode:
authorIngela Anderton Andin <[email protected]>2016-09-23 16:00:00 +0200
committerIngela Anderton Andin <[email protected]>2016-09-27 15:55:55 +0200
commit8757505b5e4e85fd8039412b3ebc2df0326ef325 (patch)
treedfee8828629a6a778807290be7662b3fd787ebc9 /lib/ssl/src/ssl_connection.hrl
parente6059f94571a6c968c15b9de6b7d63ebd64f9acf (diff)
downloadotp-8757505b5e4e85fd8039412b3ebc2df0326ef325.tar.gz
otp-8757505b5e4e85fd8039412b3ebc2df0326ef325.tar.bz2
otp-8757505b5e4e85fd8039412b3ebc2df0326ef325.zip
ssl: Avoid event reordering
Several handshake events may be received in the same TLS packet. Then there will be several events pushed to the gen_statems internal queue. New events already in the socket-buffer should not be processed if there are more unprocessed handshake events in next_event queue. We need to handle this in the next_record/1 function.
Diffstat (limited to 'lib/ssl/src/ssl_connection.hrl')
-rw-r--r--lib/ssl/src/ssl_connection.hrl1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/ssl/src/ssl_connection.hrl b/lib/ssl/src/ssl_connection.hrl
index f1e612a41b..d1ed62829c 100644
--- a/lib/ssl/src/ssl_connection.hrl
+++ b/lib/ssl/src/ssl_connection.hrl
@@ -48,6 +48,7 @@
socket_options :: #socket_options{},
connection_states :: ssl_record:connection_states() | secret_printout(),
protocol_buffers :: term() | secret_printout() , %% #protocol_buffers{} from tls_record.hrl or dtls_recor.hrl
+ unprocessed_handshake_events = 0 :: integer(),
tls_handshake_history :: ssl_handshake:ssl_handshake_history() | secret_printout()
| 'undefined',
cert_db :: reference() | 'undefined',