diff --git a/http_server.c b/http_server.c index e768dbb..45be022 100644 --- a/http_server.c +++ b/http_server.c @@ -178,7 +178,7 @@ void* accept_request(void* data) task->priority = HIGH_PRIORITY; return task; default: - LOG("ERRRRRRRRROR accept %d %d %d\n", stat, ret, ERR_get_error()); + LOG("Error performing SSL handshake %d %d %d\n", stat, ret, ERR_get_error()); ERR_print_errors_fp(stderr); return task; } diff --git a/libs/handle.c b/libs/handle.c index 0a08f6f..1ea5d0d 100644 --- a/libs/handle.c +++ b/libs/handle.c @@ -216,13 +216,13 @@ void set_nonblock(int socket) { //assert(flags != -1); fcntl(socket, F_SETFL, flags | O_NONBLOCK); } -void set_block() +/*void set_block() { int flags; flags = fcntl(socket,F_GETFL,0); //assert(flags != -1); fcntl(socket, F_SETFL, flags & (~O_NONBLOCK)); -} +}*/ int antd_close(void* src) { if(!src) return -1; diff --git a/libs/handle.h b/libs/handle.h index 9aa1738..c0096ac 100644 --- a/libs/handle.h +++ b/libs/handle.h @@ -65,7 +65,7 @@ typedef struct { #endif }config_t; void set_nonblock(int socket); -void set_block(int socket); +//void set_block(int socket); int response(void*, const char*); void ctype(void*,const char*); void redirect(void*,const char*);