mirror of
https://github.com/lxsang/ant-http
synced 2024-12-27 01:08:21 +01:00
remove un neccessary code
This commit is contained in:
parent
56408cd6a7
commit
001c26824f
@ -178,7 +178,7 @@ void* accept_request(void* data)
|
|||||||
task->priority = HIGH_PRIORITY;
|
task->priority = HIGH_PRIORITY;
|
||||||
return task;
|
return task;
|
||||||
default:
|
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);
|
ERR_print_errors_fp(stderr);
|
||||||
return task;
|
return task;
|
||||||
}
|
}
|
||||||
|
@ -216,13 +216,13 @@ void set_nonblock(int socket) {
|
|||||||
//assert(flags != -1);
|
//assert(flags != -1);
|
||||||
fcntl(socket, F_SETFL, flags | O_NONBLOCK);
|
fcntl(socket, F_SETFL, flags | O_NONBLOCK);
|
||||||
}
|
}
|
||||||
void set_block()
|
/*void set_block()
|
||||||
{
|
{
|
||||||
int flags;
|
int flags;
|
||||||
flags = fcntl(socket,F_GETFL,0);
|
flags = fcntl(socket,F_GETFL,0);
|
||||||
//assert(flags != -1);
|
//assert(flags != -1);
|
||||||
fcntl(socket, F_SETFL, flags & (~O_NONBLOCK));
|
fcntl(socket, F_SETFL, flags & (~O_NONBLOCK));
|
||||||
}
|
}*/
|
||||||
int antd_close(void* src)
|
int antd_close(void* src)
|
||||||
{
|
{
|
||||||
if(!src) return -1;
|
if(!src) return -1;
|
||||||
|
@ -65,7 +65,7 @@ typedef struct {
|
|||||||
#endif
|
#endif
|
||||||
}config_t;
|
}config_t;
|
||||||
void set_nonblock(int socket);
|
void set_nonblock(int socket);
|
||||||
void set_block(int socket);
|
//void set_block(int socket);
|
||||||
int response(void*, const char*);
|
int response(void*, const char*);
|
||||||
void ctype(void*,const char*);
|
void ctype(void*,const char*);
|
||||||
void redirect(void*,const char*);
|
void redirect(void*,const char*);
|
||||||
|
Loading…
Reference in New Issue
Block a user