MCPcopy Create free account
hub / github.com/Project-OSRM/osrm-backend / should_keep_alive

Method should_keep_alive

src/server/connection.cpp:201–214  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

199}
200
201bool Connection::should_keep_alive() const
202{
203 if (!request_.keep_alive())
204 {
205 return false;
206 }
207
208 if (processed_requests_ >= KEEPALIVE_MAX_REQUESTS)
209 {
210 return false;
211 }
212
213 return true;
214}
215
216std::vector<char> Connection::compress_buffers(const std::vector<char> &uncompressed_data,
217 const http::compression_type compression_type)

Callers 1

handle_writeMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected