Skip to content
This repository was archived by the owner on Jun 12, 2018. It is now read-only.

Commit 8447a68

Browse files
committed
Now using correct num_threads.
1 parent bcb0912 commit 8447a68

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

server_ws.hpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ namespace SimpleWeb {
198198

199199
//If num_threads>1, start m_io_service.run() in (num_threads-1) threads for thread-pooling
200200
threads.clear();
201-
for(size_t c=1;c<num_threads;c++) {
201+
for(size_t c=1;c<config.num_threads;c++) {
202202
threads.emplace_back([this](){
203203
io_service.run();
204204
});
@@ -295,7 +295,6 @@ namespace SimpleWeb {
295295
boost::asio::io_service io_service;
296296
boost::asio::ip::tcp::acceptor acceptor;
297297

298-
size_t num_threads;
299298
std::vector<std::thread> threads;
300299

301300
size_t timeout_request;

0 commit comments

Comments
 (0)