View | Details | Raw Unified | Return to bug 235020
Collapse All | Expand All

(-)modules/ssl/ssl_engine_io.c (-8 / +4 lines)
Lines 200-217 Link Here
200
    apr_bucket *e;
200
    apr_bucket *e;
201
    int need_flush;
201
    int need_flush;
202
202
203
    BIO_clear_retry_flags(bio);
204
203
    /* Abort early if the client has initiated a renegotiation. */
205
    /* Abort early if the client has initiated a renegotiation. */
204
    if (outctx->filter_ctx->config->reneg_state == RENEG_ABORT) {
206
    if (outctx->filter_ctx->config->reneg_state == RENEG_ABORT) {
205
        outctx->rc = APR_ECONNABORTED;
207
        outctx->rc = APR_ECONNABORTED;
206
        return -1;
208
        return -1;
207
    }
209
    }
208
210
209
    /* when handshaking we'll have a small number of bytes.
210
     * max size SSL will pass us here is about 16k.
211
     * (16413 bytes to be exact)
212
     */
213
    BIO_clear_retry_flags(bio);
214
215
    /* Use a transient bucket for the output data - any downstream
211
    /* Use a transient bucket for the output data - any downstream
216
     * filter must setaside if necessary. */
212
     * filter must setaside if necessary. */
217
    e = apr_bucket_transient_create(in, inl, outctx->bb->bucket_alloc);
213
    e = apr_bucket_transient_create(in, inl, outctx->bb->bucket_alloc);
Lines 458-471 Link Here
458
    if (!in)
454
    if (!in)
459
        return 0;
455
        return 0;
460
456
457
    BIO_clear_retry_flags(bio);
458
461
    /* Abort early if the client has initiated a renegotiation. */
459
    /* Abort early if the client has initiated a renegotiation. */
462
    if (inctx->filter_ctx->config->reneg_state == RENEG_ABORT) {
460
    if (inctx->filter_ctx->config->reneg_state == RENEG_ABORT) {
463
        inctx->rc = APR_ECONNABORTED;
461
        inctx->rc = APR_ECONNABORTED;
464
        return -1;
462
        return -1;
465
    }
463
    }
466
464
467
    BIO_clear_retry_flags(bio);
468
469
    if (!inctx->bb) {
465
    if (!inctx->bb) {
470
        inctx->rc = APR_EOF;
466
        inctx->rc = APR_EOF;
471
        return -1;
467
        return -1;

Return to bug 235020