mirror of
https://github.com/apache/httpd.git
synced 2025-08-08 15:02:10 +03:00
* modules/ssl/ssl_engine_io.c (bio_filter_out_ctrl): Switch
implementation of BIO_CTRL_PENDING and BIO_CTRL_WPENDING, to return zero and pending-bytes-to-write respectively. PR: 46952 Submitted by: David Smith <David.Smith cern.ch> git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@787722 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
@@ -261,10 +261,14 @@ static long bio_filter_out_ctrl(BIO *bio, int cmd, long num, void *ptr)
|
|||||||
case BIO_CTRL_SET_CLOSE:
|
case BIO_CTRL_SET_CLOSE:
|
||||||
bio->shutdown = (int)num;
|
bio->shutdown = (int)num;
|
||||||
break;
|
break;
|
||||||
case BIO_CTRL_WPENDING:
|
case BIO_CTRL_PENDING:
|
||||||
|
/* _PENDING is interpreted as "pending to read" - since this
|
||||||
|
* is a *write* buffer, return zero. */
|
||||||
ret = 0L;
|
ret = 0L;
|
||||||
break;
|
break;
|
||||||
case BIO_CTRL_PENDING:
|
case BIO_CTRL_WPENDING:
|
||||||
|
/* _WPENDING is interpreted as "pending to write" - return the
|
||||||
|
* number of bytes in ->bb plus buffer. */
|
||||||
ret = (long)(outctx->blen + outctx->length);
|
ret = (long)(outctx->blen + outctx->length);
|
||||||
break;
|
break;
|
||||||
case BIO_CTRL_FLUSH:
|
case BIO_CTRL_FLUSH:
|
||||||
|
Reference in New Issue
Block a user