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 tothe number of sent data packets. This yields a number between 0 and 1 with 0meaning 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 thefull 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.