mirror of
https://github.com/curl/curl.git
synced 2026-08-25 00:13:34 +03:00
getinfo: fix CURLINFO_QUEUE_TIME_T and add 'time_queue' var
Let CURLINFO_QUEUE_TIME_T count only the time a transfer spends queued, including possible redirect requests. Add var 'time_queue' for reporting the time in write outs. Add test for verifying correct reporting. Closes #15512
This commit is contained in:
parent
40c264db61
commit
b06b35154f
9 changed files with 25 additions and 9 deletions
|
|
@ -122,6 +122,7 @@ static const struct writeoutvar variables[] = {
|
|||
writeTime},
|
||||
{"time_pretransfer", VAR_PRETRANSFER_TIME, CURLINFO_PRETRANSFER_TIME_T,
|
||||
writeTime},
|
||||
{"time_queue", VAR_QUEUE_TIME, CURLINFO_QUEUE_TIME_T, writeTime},
|
||||
{"time_redirect", VAR_REDIRECT_TIME, CURLINFO_REDIRECT_TIME_T, writeTime},
|
||||
{"time_starttransfer", VAR_STARTTRANSFER_TIME, CURLINFO_STARTTRANSFER_TIME_T,
|
||||
writeTime},
|
||||
|
|
|
|||
|
|
@ -82,6 +82,7 @@ typedef enum {
|
|||
VAR_PRIMARY_PORT,
|
||||
VAR_PROXY_SSL_VERIFY_RESULT,
|
||||
VAR_PROXY_USED,
|
||||
VAR_QUEUE_TIME,
|
||||
VAR_REDIRECT_COUNT,
|
||||
VAR_REDIRECT_TIME,
|
||||
VAR_REDIRECT_URL,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue