$request_time in logging

Hi all,

Does $request_time includes the socket operations (accept(), read(),
send() and close()) or only the local processing time?

I’m curious because I wrote some rrdtool stats based on this log feature
and seeing some long timeouts.

Regards
Marlon

On Tue, Dec 02, 2008 at 09:40:10AM +0100, Marlon de Boer wrote:

Does $request_time includes the socket operations (accept(), read(),
send() and close()) or only the local processing time?

I’m curious because I wrote some rrdtool stats based on this log feature
and seeing some long timeouts.

$request_time is time between first read() and last write()/sendfile().
The time between accept() and first read() is not accounted.

Igor S. wrote:

$request_time is time between first read() and last write()/sendfile().
The time between accept() and first read() is not accounted.

Ok, just to be sure, this will include the time spend reading the
request from the client and sending the actual data to the client?

Regards
Marlon

On Tue, Dec 02, 2008 at 10:49:19AM +0100, Marlon de Boer wrote:

Igor S. wrote:

$request_time is time between first read() and last write()/sendfile().
The time between accept() and first read() is not accounted.

Ok, just to be sure, this will include the time spend reading the
request from the client and sending the actual data to the client?

Yes. However, as to sending nginx pass data to kernel only and can not
control when the data will be recieved by a client.