summaryrefslogtreecommitdiffstats
path: root/ssl/statem/statem.h
diff options
context:
space:
mode:
authorMatt Caswell <matt@openssl.org>2017-11-27 15:20:06 +0000
committerMatt Caswell <matt@openssl.org>2017-12-28 17:32:41 +0000
commit2a8db717132ec8be7dc24ce7083972245b1173ae (patch)
tree59f70fabe776929afaf082e632d63988a7214699 /ssl/statem/statem.h
parentbfa470a4f64313651a35571883e235d3335054eb (diff)
Don't flush the ClientHello if we're going to send early data
We'd like the first bit of early_data and the ClientHello to go in the same TCP packet if at all possible to enable things like TCP Fast Open. Also, if you're only going to send one block of early data then you also don't need to worry about TCP_NODELAY. Fixes #4783 Reviewed-by: Richard Levitte <levitte@openssl.org> (Merged from https://github.com/openssl/openssl/pull/4802)
Diffstat (limited to 'ssl/statem/statem.h')
-rw-r--r--ssl/statem/statem.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/ssl/statem/statem.h b/ssl/statem/statem.h
index 83bebe77e6..e8d9174b8f 100644
--- a/ssl/statem/statem.h
+++ b/ssl/statem/statem.h
@@ -132,3 +132,6 @@ __owur int ossl_statem_skip_early_data(SSL *s);
void ossl_statem_check_finish_init(SSL *s, int send);
void ossl_statem_set_hello_verify_done(SSL *s);
__owur int ossl_statem_app_data_allowed(SSL *s);
+
+/* Flush the write BIO */
+int statem_flush(SSL *s);