Switch to single-threaded epoll-based operation

This commit is contained in:
Ian Gulliver
2019-05-04 07:21:52 +00:00
parent 87bc2c1611
commit ac0d3e2816
8 changed files with 95 additions and 45 deletions

View File

@@ -12,7 +12,10 @@ class FastCGIServer {
void Serve();
private:
int listen_sock_;
void NewConn();
const std::function<void(std::unique_ptr<FastCGIRequest>)> callback_;
const std::unordered_set<std::string_view> headers_;
int epoll_fd_;
int listen_sock_;
};