luaossl
luaossl copied to clipboard
Support TLS False Start
TLS False Start allows for less round trips to start an SSL connection http://chimera.labs.oreilly.com/books/1230000000545/ch04.html#TLS_FALSE_START It's supported by all major browsers as long as ALPN is used.
On some openssl forks it is enabled by the option SSL_MODE_HANDSHAKE_CUTTHROUGH. But this doesn't seem to exist in the main openssl repo. I'm not sure if there's another name for it.
Interesting link: https://www.imperialviolet.org/2012/04/11/falsestart.html
Now that false start has a proper RFC I've filed https://github.com/openssl/openssl/issues/1541
On the cqueues side this will mean allowing writes before starttls has "finished". At the moment lso_prepsnd returns an error if so_starttls hasn't finished, I don't see why it should: this is something we could change now.