sha1
This commit is contained in:
@@ -368,6 +368,11 @@ FastCGIServer::process_connection_read(Connection& connection)
|
||||
}
|
||||
}
|
||||
|
||||
if(connection.requests.size() > 1)
|
||||
{
|
||||
printf("(!) %i requests in flight at the same time!\n", connection.requests.size());
|
||||
}
|
||||
|
||||
//auto arena = new MemoryArena(server_state.config.MAX_MEMORY, "request");
|
||||
request_arena->clear();
|
||||
switch_to_arena(request_arena);
|
||||
@@ -517,15 +522,16 @@ FastCGIServer::process_write_request(Connection& connection, RequestID id,
|
||||
write_data(connection.output_buffer, id, request.err, FCGI_STDERR);
|
||||
|
||||
request.stats.time_end = microtime();
|
||||
printf("(r) pid:%i\t%s\t%0.6fs\tfps:%0.0f\tout:%0.1fkB\tmem:%0.0f/%0.0fkB\n",
|
||||
my_pid,
|
||||
request.params["REQUEST_URI"].c_str(),
|
||||
request.stats.time_end - request.stats.time_start,
|
||||
1.0 / (request.stats.time_end - request.stats.time_start),
|
||||
(f32)(request.out.length()/1024),
|
||||
(f32)(request.mem->size/1024),
|
||||
(f32)(request.mem->capacity/1024)
|
||||
);
|
||||
if(request.flags.log_request)
|
||||
printf("(r) pid:%i\t%s\t%0.6fs\tfps:%0.0f\tout:%0.1fkB\tmem:%0.0f/%0.0fkB\n",
|
||||
my_pid,
|
||||
request.params["REQUEST_URI"].c_str(),
|
||||
request.stats.time_end - request.stats.time_start,
|
||||
1.0 / (request.stats.time_end - request.stats.time_start),
|
||||
(f32)(request.out.length()/1024),
|
||||
(f32)(request.mem->size/1024),
|
||||
(f32)(request.mem->capacity/1024)
|
||||
);
|
||||
|
||||
FCGI_EndRequestRecord complete;
|
||||
bzero(&complete, sizeof(complete));
|
||||
|
||||
Reference in New Issue
Block a user