Fix a bug where you might flush some data on a tls connection, and then