client.socket.ploss
FLOAT, read-only.
Available inrecvdeliverlogerror
An estimate of packet loss associated with the current client-side connection. The metric is the ratio of sent packets that contain some retransmitted data to the number of sent data packets. This yields a number between 0 and 1 with 0 meaning no loss.
Try it out
client.socket.ploss
is used in the following code examples. Examples apply VCL to real-world use cases and can be deployed as they are, or adapted for your own service. See the full list of code examples for more inspiration.
Click RUN on a sample below to provision a Fastly service, execute the code on Fastly, and see how the function behaves.
Comprehensive logging
Fastly offers a myriad of different variables that you can log. See and test a large collection here.