Add multi-thread support.

This commit is contained in:
flamingcow
2019-05-04 12:16:31 -07:00
parent 95e9eb0c51
commit e7b2f089f3
4 changed files with 53 additions and 35 deletions

1
sse.cc
View File

@@ -4,6 +4,7 @@ SSEServer::SSEServer(int port, const std::function<void(std::unique_ptr<SSEStrea
: callback_(callback),
fastcgi_server_(port,
[this](std::unique_ptr<FastCGIRequest> request) { OnRequest(std::move(request)); },
1,
{"HTTP_ACCEPT"}) {}
void SSEServer::Serve() {