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 solution recipes, which show real world use cases. Click RUN 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.

User contributed notes

We welcome comments that add use cases, ideas, tips, and caveats. All comments will be moderated before publication. To post support questions, visit our support center and we'll find you the help you need.