Skip to content

Commit

Permalink
Reader is removed
Browse files Browse the repository at this point in the history
  • Loading branch information
Pavel Kraynyukhov committed Jul 22, 2018
1 parent 3e91d09 commit 2a648aa
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions include/wsServer.h
Original file line number Diff line number Diff line change
Expand Up @@ -226,15 +226,10 @@ namespace LAppS
itc::getLog()->error(__FILE__,__LINE__,"workers.auto_fragment option is not set or of inappropriate type, using default value: false");
}
}
size_t preads=1;
auto preads_found=found.value().find("preads");
if((preads_found!=found.value().end())&&(preads_found.value().is_number_unsigned()))
{
preads=preads_found.value();
}

for(size_t i=0;i<mWorkers;++i)
{
WorkersPool::getInstance()->spawn(max_connections,auto_fragment,preads);
WorkersPool::getInstance()->spawn(max_connections,auto_fragment);
}
startListeners();
};
Expand Down

0 comments on commit 2a648aa

Please # to comment.