src: HttpServer: Remove unused member variable sfd_
This commit is contained in:
parent
55b074e96e
commit
07814be5b2
|
@ -875,18 +875,7 @@ private:
|
||||||
|
|
||||||
HttpServer::HttpServer(const Config *config)
|
HttpServer::HttpServer(const Config *config)
|
||||||
: config_(config)
|
: config_(config)
|
||||||
{
|
{}
|
||||||
memset(sfd_, -1, sizeof(sfd_));
|
|
||||||
}
|
|
||||||
|
|
||||||
HttpServer::~HttpServer()
|
|
||||||
{
|
|
||||||
for(int i = 0; i < 2; ++i) {
|
|
||||||
if(sfd_[i] != -1) {
|
|
||||||
close(sfd_[i]);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
namespace {
|
namespace {
|
||||||
int next_proto_cb(SSL *s, const unsigned char **data, unsigned int *len,
|
int next_proto_cb(SSL *s, const unsigned char **data, unsigned int *len,
|
||||||
|
|
|
@ -129,12 +129,10 @@ private:
|
||||||
class HttpServer {
|
class HttpServer {
|
||||||
public:
|
public:
|
||||||
HttpServer(const Config* config);
|
HttpServer(const Config* config);
|
||||||
~HttpServer();
|
|
||||||
int listen();
|
int listen();
|
||||||
int run();
|
int run();
|
||||||
private:
|
private:
|
||||||
const Config *config_;
|
const Config *config_;
|
||||||
int sfd_[2];
|
|
||||||
};
|
};
|
||||||
|
|
||||||
void htdocs_on_request_recv_callback
|
void htdocs_on_request_recv_callback
|
||||||
|
|
Loading…
Reference in New Issue