remove err

This commit is contained in:
lxsang 2019-12-15 16:24:15 +01:00
parent 98feff09d6
commit e98970b378
3 changed files with 12 additions and 10 deletions

Binary file not shown.

View File

@ -267,7 +267,7 @@ int antd_send(void *src, const void* data, int len)
//source->attempt++; //source->attempt++;
continue; // more data to read... continue; // more data to read...
} }
ERROR("SSL WRITE: want read but select error on the socket %d: %s", source->sock, strerror(errno)); //ERROR("SSL WRITE: want read but select error on the socket %d: %s", source->sock, strerror(errno));
break; break;
} }
@ -288,14 +288,14 @@ int antd_send(void *src, const void* data, int len)
//source->attempt++; //source->attempt++;
continue; // can write more data now... continue; // can write more data now...
} }
ERROR("SSL WRITE: want write but select error on the socket %d: %s", source->sock, strerror(errno)); //ERROR("SSL WRITE: want write but select error on the socket %d: %s", source->sock, strerror(errno));
break; break;
} }
default: default:
{ {
// other error // other error
ERROR("SSL WRITE: Unknown error on %d: %s", source->sock, ERR_error_string(ERR_get_error(), NULL) ); //ERROR("SSL WRITE: Unknown error on %d: %s", source->sock, ERR_error_string(ERR_get_error(), NULL) );
break; break;
} }
} }
@ -321,7 +321,7 @@ int antd_send(void *src, const void* data, int len)
} }
else if(count == -1 && errno != EAGAIN && errno != EWOULDBLOCK) else if(count == -1 && errno != EAGAIN && errno != EWOULDBLOCK)
{ {
ERROR("Error while writing: %s", strerror(errno)); //ERROR("Error while writing: %s", strerror(errno));
break; break;
//return written; //return written;
} }
@ -379,7 +379,7 @@ int antd_recv(void *src, void* data, int len)
case SSL_ERROR_ZERO_RETURN: case SSL_ERROR_ZERO_RETURN:
{ {
// peer disconnected... // peer disconnected...
ERROR("SSL READ: SSL_ERROR_ZERO_RETURN, peer disconnected %d", source->sock); //ERROR("SSL READ: SSL_ERROR_ZERO_RETURN, peer disconnected %d", source->sock);
break; break;
} }
@ -400,7 +400,7 @@ int antd_recv(void *src, void* data, int len)
//source->attempt++; //source->attempt++;
continue; // more data to read... continue; // more data to read...
} }
ERROR("SSL READ: want read but select error on the socket %d: %s", source->sock, strerror(errno)); //ERROR("SSL READ: want read but select error on the socket %d: %s", source->sock, strerror(errno));
break; break;
} }
@ -421,14 +421,14 @@ int antd_recv(void *src, void* data, int len)
//source->attempt++; //source->attempt++;
continue; // can write more data now... continue; // can write more data now...
} }
ERROR("SSL READ: want write but select error on the socket %d: %s", source->sock, strerror(errno)); //ERROR("SSL READ: want write but select error on the socket %d: %s", source->sock, strerror(errno));
break; break;
} }
default: default:
{ {
// other error // other error
ERROR("SSL READ: unkown error on %d: %s", source->sock, ERR_error_string(ERR_get_error(), NULL)); //ERROR("SSL READ: unkown error on %d: %s", source->sock, ERR_error_string(ERR_get_error(), NULL));
break; break;
} }
} }
@ -548,7 +548,8 @@ int __t(void* client, const char* fstring,...)
vsnprintf(data, dlen, fstring, arguments); vsnprintf(data, dlen, fstring, arguments);
va_end(arguments); va_end(arguments);
st = __b(client, (const unsigned char*)data, strlen(data)); st = __b(client, (const unsigned char*)data, strlen(data));
__b(client, (unsigned char*)"\r\n", 2); if(st)
__b(client, (unsigned char*)"\r\n", 2);
free(data); free(data);
return st; return st;
} }

View File

@ -226,7 +226,8 @@ antd_task_t* antd_create_task(void* (*handle)(void*), void *data, void* (*callba
task->handle = handle; task->handle = handle;
task->callback = callback_of(callback); task->callback = callback_of(callback);
task->priority = NORMAL_PRIORITY; task->priority = NORMAL_PRIORITY;
task->type = LIGHT; task->type = HEAVY;
//task->type = LIGHT;
task->access_time = atime; task->access_time = atime;
return task; return task;
} }