mirror of
https://github.com/lxsang/ant-http
synced 2024-12-26 00:38: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;
|
||||
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;
|
||||
}
|
||||
|
@ -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;
|
||||
|
@ -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*);
|
||||
|
Loading…
Reference in New Issue
Block a user