1
0
Fork 0

cosmetics

This commit is contained in:
Frank Celler 2016-11-07 12:41:30 +01:00
parent cfdb7ababa
commit a1003cb5d3
4 changed files with 7 additions and 12 deletions

View File

@ -123,9 +123,6 @@ class GeneralCommTask : public SocketTask {
std::unordered_map<uint64_t, RequestStatisticsAgent> _agents;
private:
void handleTimeout() /* override final */ { /* _clientClosed = true; */
}
bool handleRequest(std::shared_ptr<RestHandler>);
void handleRequestDirectly(std::shared_ptr<RestHandler>);
bool handleRequestAsync(std::shared_ptr<RestHandler>,

View File

@ -58,14 +58,13 @@ HttpCommTask::HttpCommTask(EventLoop loop, GeneralServer* server,
_allowMethodOverride(GeneralServerFeature::allowMethodOverride()),
_denyCredentials(true),
_newRequest(true),
_requestType(rest::RequestType::ILLEGAL), // TODO(fc) remove
_fullUrl(), // TODO(fc) remove
_origin(), // TODO(fc) remove
_requestType(rest::RequestType::ILLEGAL),
_fullUrl(),
_origin(),
_sinceCompactification(0),
_originalBodyLength(0) { // TODO(fc) remove
_originalBodyLength(0) {
_protocol = "http";
connectionStatisticsAgentSetHttp(); // this agent is inherited form
// sockettask or task
connectionStatisticsAgentSetHttp();
_agents.emplace(std::make_pair(1UL, RequestStatisticsAgent(true)));
}

View File

@ -72,7 +72,6 @@ VppCommTask::VppCommTask(EventLoop loop, GeneralServer* server,
_readBuffer.reserve(
_bufferLength); // ATTENTION <- this is required so we do not
// loose information during a resize
// connectionStatisticsAgentSetVpp();
_agents.emplace(std::make_pair(0UL, RequestStatisticsAgent(true)));
getAgent(0UL)->acquire();
}

View File

@ -22,8 +22,8 @@
/// @author Achim Brandt
////////////////////////////////////////////////////////////////////////////////
#ifndef ARANGOD_SCHEDULER_SOCKET_TASK2_H
#define ARANGOD_SCHEDULER_SOCKET_TASK2_H 1
#ifndef ARANGOD_SCHEDULER_SOCKET_TASK_H
#define ARANGOD_SCHEDULER_SOCKET_TASK_H 1
#include "Scheduler/Task.h"