when establishing a TCP+SSL connection, the handler gets a
handshakeCompleted(negotiatedProtocol: nil) event. what happens if i call
channel.writeAndFlush before the handshake completes? is it possible for this to fail?
so far, it seems to be working, but i don’t know if that’s just because the
writeAndFlush call is asynchronous, and isn’t actually executing until after the handshake completes.