From 8f635c5ab5d6ce10b330160a04bee0dd6c9a141f Mon Sep 17 00:00:00 2001 From: "William A. Rowe Jr" Date: Mon, 4 Nov 2002 19:41:52 +0000 Subject: [PATCH] Appears we forgot to check the possibility of errors coming from the write brigade passed down from the content generator through the body and protocol filters. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@97397 13f79535-47bb-0310-9956-ffa450edef68 --- modules/ssl/ssl_engine_io.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/modules/ssl/ssl_engine_io.c b/modules/ssl/ssl_engine_io.c index 2deb56b2f9..404ca1e888 100644 --- a/modules/ssl/ssl_engine_io.c +++ b/modules/ssl/ssl_engine_io.c @@ -690,8 +690,13 @@ static apr_status_t ssl_io_filter_Output(ap_filter_t *f, /* read filter */ const char *data; apr_size_t len; + + status = apr_bucket_read(bucket, &data, &len, APR_BLOCK_READ); + + if (APR_STATUS_IS_EOF(status) && (status != APR_SUCCESS)) { + break; + } - apr_bucket_read(bucket, &data, &len, APR_BLOCK_READ); status = ssl_filter_write(f, data, len); apr_bucket_delete(bucket); -- 2.50.1