Set s->read_ahead in SSL_new because SSL_clear no longer modifies it.
diff --git a/ssl/ssl_lib.c b/ssl/ssl_lib.c
index d77d340..fec98dd 100644
--- a/ssl/ssl_lib.c
+++ b/ssl/ssl_lib.c
@@ -231,6 +231,7 @@
 	s->server=(ctx->method->ssl_accept == ssl_undefined_function)?0:1;
 	s->options=ctx->options;
 	s->mode=ctx->mode;
+	s->read_ahead=ctx->read_ahead; /* used to happen in SSL_clear */
 	SSL_clear(s);
 
 	CRYPTO_new_ex_data(ssl_meth,s,&s->ex_data);