1
0
mirror of https://github.com/lxsang/ant-http synced 2024-07-01 12:59:47 +02:00
This commit is contained in:
lxsang 2019-12-15 17:13:25 +01:00
parent 4e75706e22
commit 63c65e0d46
2 changed files with 2 additions and 2 deletions

Binary file not shown.

View File

@ -224,6 +224,7 @@ int antd_send(void *src, const void* data, int len)
// clear the error queue
ERR_clear_error();
count = SSL_write (source->ssl, ptr+written, writelen);
int err = SSL_get_error(source->ssl, count);
if (count > 0)
{
written += count;
@ -232,7 +233,6 @@ int antd_send(void *src, const void* data, int len)
else
{
//printf(" received equal to or less than 0\n")
int err = SSL_get_error(source->ssl, count);
switch (err)
{
case SSL_ERROR_NONE:
@ -361,6 +361,7 @@ int antd_recv(void *src, void* data, int len)
{
ERR_clear_error();
received = SSL_read (source->ssl, ptr+read, readlen);
int err = SSL_get_error(source->ssl, received);
if (received > 0)
{
read += received;
@ -369,7 +370,6 @@ int antd_recv(void *src, void* data, int len)
else
{
//printf(" received equal to or less than 0\n")
int err = SSL_get_error(source->ssl, received);
switch (err)
{
case SSL_ERROR_NONE: