Merge pull request #576 from nickraptis/req-ts-start

Accurately timestamp start of request
This commit is contained in:
Maximilian Hils 2015-05-08 10:59:03 +02:00
commit 541a506b5f

View File

@ -344,6 +344,11 @@ class HTTPRequest(HTTPMessage):
body_size_limit = body_size_limit,
wfile = wfile
)
if hasattr(rfile, "first_byte_timestamp"):
# more accurate timestamp_start
timestamp_start = rfile.first_byte_timestamp
timestamp_end = utils.timestamp()
return HTTPRequest(
req.form_in,