Skip to content

cfRequestDuration missing from __down request #288

@RensHijdra

Description

@RensHijdra

cfspeedtest panics on a regex captures unwrap because the expected cfRequestDuration;dur=([\d.]+) is not present in the response headers.

thread 'main' (32088) panicked at src\speedtest.rs:218:10:
called `Option::unwrap()` on a `None` value

The Server-Timing header (now) contains the following.

Server-Timing header: cfL4;desc="?proto=TCP&rtt=5003&min_rtt=4257&rtt_var=2477&sent=6&recv=6&lost=0&retrans=0&sent_bytes=4509&recv_bytes=531&delivery_rate=571652&cwnd=54&unsent_bytes=0&cid=&ts=52&x=0"

I suppose CF updated the request and dropped this field from the response. The Server-Timing header does supply a rtt field but I am unsure whether this suffices as a direct replacement for the entire req_latency and if server latency is already subtracted from there.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions