You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@serf.apache.org by ko...@apache.org on 2022/06/23 16:53:44 UTC
svn commit: r1902209 - /serf/trunk/test/MockHTTPinC/MockHTTP_server.c
Author: kotkov
Date: Thu Jun 23 16:53:44 2022
New Revision: 1902209
URL: http://svn.apache.org/viewvc?rev=1902209&view=rev
Log:
* test/MockHTTPinC/MockHTTP_server.c
(bio_apr_socket_ctrl): Following up on r1902208, simplify the code by
returning the hit_eof value.
Modified:
serf/trunk/test/MockHTTPinC/MockHTTP_server.c
Modified: serf/trunk/test/MockHTTPinC/MockHTTP_server.c
URL: http://svn.apache.org/viewvc/serf/trunk/test/MockHTTPinC/MockHTTP_server.c?rev=1902209&r1=1902208&r2=1902209&view=diff
==============================================================================
--- serf/trunk/test/MockHTTPinC/MockHTTP_server.c (original)
+++ serf/trunk/test/MockHTTPinC/MockHTTP_server.c Thu Jun 23 16:53:44 2022
@@ -2336,10 +2336,7 @@ static long bio_apr_socket_ctrl(BIO *bio
case BIO_CTRL_POP:
return 0;
case BIO_CTRL_EOF:
- if (ssl_ctx->hit_eof == YES)
- return 1;
- else
- return 0;
+ return ssl_ctx->hit_eof;
default:
/* abort(); */
return 1;