mirror of
https://github.com/lxsang/ant-http
synced 2025-01-30 23:42:47 +01:00
fix
This commit is contained in:
parent
4e75706e22
commit
63c65e0d46
BIN
dist/antd-1.0.4b.tar.gz
vendored
BIN
dist/antd-1.0.4b.tar.gz
vendored
Binary file not shown.
@ -224,6 +224,7 @@ int antd_send(void *src, const void* data, int len)
|
|||||||
// clear the error queue
|
// clear the error queue
|
||||||
ERR_clear_error();
|
ERR_clear_error();
|
||||||
count = SSL_write (source->ssl, ptr+written, writelen);
|
count = SSL_write (source->ssl, ptr+written, writelen);
|
||||||
|
int err = SSL_get_error(source->ssl, count);
|
||||||
if (count > 0)
|
if (count > 0)
|
||||||
{
|
{
|
||||||
written += count;
|
written += count;
|
||||||
@ -232,7 +233,6 @@ int antd_send(void *src, const void* data, int len)
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
//printf(" received equal to or less than 0\n")
|
//printf(" received equal to or less than 0\n")
|
||||||
int err = SSL_get_error(source->ssl, count);
|
|
||||||
switch (err)
|
switch (err)
|
||||||
{
|
{
|
||||||
case SSL_ERROR_NONE:
|
case SSL_ERROR_NONE:
|
||||||
@ -361,6 +361,7 @@ int antd_recv(void *src, void* data, int len)
|
|||||||
{
|
{
|
||||||
ERR_clear_error();
|
ERR_clear_error();
|
||||||
received = SSL_read (source->ssl, ptr+read, readlen);
|
received = SSL_read (source->ssl, ptr+read, readlen);
|
||||||
|
int err = SSL_get_error(source->ssl, received);
|
||||||
if (received > 0)
|
if (received > 0)
|
||||||
{
|
{
|
||||||
read += received;
|
read += received;
|
||||||
@ -369,7 +370,6 @@ int antd_recv(void *src, void* data, int len)
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
//printf(" received equal to or less than 0\n")
|
//printf(" received equal to or less than 0\n")
|
||||||
int err = SSL_get_error(source->ssl, received);
|
|
||||||
switch (err)
|
switch (err)
|
||||||
{
|
{
|
||||||
case SSL_ERROR_NONE:
|
case SSL_ERROR_NONE:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user