未验证 提交 1e7ef6d2 编写于 作者: H Huiliang.liu 提交者: GitHub

fix gpfdist build error on USE_SSL off (#7522)

上级 bd13e8f7
......@@ -4091,19 +4091,6 @@ static int gpfdist_socket_receive(const request_t *r, void *buf, const size_t bu
return ( recv(r->sock, buf, buflen, 0) );
}
#ifdef USE_SSL
/*
* gpfdist_SSL_receive
*
* read from an SSL socket
*/
static int gpfdist_SSL_receive(const request_t *r, void *buf, const size_t buflen)
{
return ( BIO_read(r->io, buf, buflen) );
/* todo: add error checks here */
}
/*
* request_shutdown_sock
*
......@@ -4122,6 +4109,18 @@ static void request_shutdown_sock(const request_t* r)
}
}
#ifdef USE_SSL
/*
* gpfdist_SSL_receive
*
* read from an SSL socket
*/
static int gpfdist_SSL_receive(const request_t *r, void *buf, const size_t buflen)
{
return ( BIO_read(r->io, buf, buflen) );
/* todo: add error checks here */
}
/*
* free_SSL_resources
*
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册