bdaebd
# ./pullrev.sh 1851471
bdaebd
http://svn.apache.org/viewvc?view=revision&revision=1851471
bdaebd
bdaebd
--- httpd-2.4.37/modules/ssl/ssl_engine_io.c
bdaebd
+++ httpd-2.4.37/modules/ssl/ssl_engine_io.c
bdaebd
@@ -200,6 +200,8 @@
bdaebd
     apr_bucket *e;
bdaebd
     int need_flush;
bdaebd
 
bdaebd
+    BIO_clear_retry_flags(bio);
bdaebd
+
bdaebd
     /* Abort early if the client has initiated a renegotiation. */
bdaebd
     if (outctx->filter_ctx->config->reneg_state == RENEG_ABORT) {
bdaebd
         outctx->rc = APR_ECONNABORTED;
bdaebd
@@ -206,12 +208,6 @@
bdaebd
         return -1;
bdaebd
     }
bdaebd
 
bdaebd
-    /* when handshaking we'll have a small number of bytes.
bdaebd
-     * max size SSL will pass us here is about 16k.
bdaebd
-     * (16413 bytes to be exact)
bdaebd
-     */
bdaebd
-    BIO_clear_retry_flags(bio);
bdaebd
-
bdaebd
     /* Use a transient bucket for the output data - any downstream
bdaebd
      * filter must setaside if necessary. */
bdaebd
     e = apr_bucket_transient_create(in, inl, outctx->bb->bucket_alloc);
bdaebd
@@ -458,6 +454,8 @@
bdaebd
     if (!in)
bdaebd
         return 0;
bdaebd
 
bdaebd
+    BIO_clear_retry_flags(bio);
bdaebd
+
bdaebd
     /* Abort early if the client has initiated a renegotiation. */
bdaebd
     if (inctx->filter_ctx->config->reneg_state == RENEG_ABORT) {
bdaebd
         inctx->rc = APR_ECONNABORTED;
bdaebd
@@ -464,8 +462,6 @@
bdaebd
         return -1;
bdaebd
     }
bdaebd
 
bdaebd
-    BIO_clear_retry_flags(bio);
bdaebd
-
bdaebd
     if (!inctx->bb) {
bdaebd
         inctx->rc = APR_EOF;
bdaebd
         return -1;