mirror of
https://gitee.com/zyjblog/oatpp.git
synced 2025-01-03 05:22:24 +08:00
Revert "Rebased this branch from v1.3.0 branch"
This reverts commit f1b55ea625
.
This commit is contained in:
parent
d2c38cc740
commit
81601cb4b3
@ -77,7 +77,7 @@ void HttpConnectionHandler::handleConnection(const std::shared_ptr<oatpp::data::
|
||||
if(concurrency > 1) {
|
||||
concurrency -= 1;
|
||||
}
|
||||
|
||||
|
||||
/* Set thread affinity group CPUs [0..cpu_count - 1]. Leave one cpu free of workers */
|
||||
oatpp::concurrency::setThreadAffinityToCpuRange(thread.native_handle(), 0, concurrency - 1 /* -1 because 0-based index */);
|
||||
|
||||
|
@ -260,6 +260,7 @@ HttpProcessor::Coroutine::Coroutine(const std::shared_ptr<Components>& component
|
||||
, m_connectionState(ConnectionState::ALIVE)
|
||||
{}
|
||||
|
||||
|
||||
HttpProcessor::Coroutine::Action HttpProcessor::Coroutine::act() {
|
||||
return m_connection->initContextsAsync().next(yieldTo(&HttpProcessor::Coroutine::parseHeaders));
|
||||
}
|
||||
|
@ -236,7 +236,7 @@ public:
|
||||
*/
|
||||
Coroutine(const std::shared_ptr<Components>& components,
|
||||
const std::shared_ptr<oatpp::data::stream::IOStream>& connection);
|
||||
|
||||
|
||||
Action act() override;
|
||||
|
||||
Action parseHeaders();
|
||||
@ -249,7 +249,7 @@ public:
|
||||
Action onRequestDone();
|
||||
|
||||
Action handleError(Error* error) override;
|
||||
|
||||
|
||||
};
|
||||
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user