---
title: client.socket.tcpi_data_segs_in
summary: null
url: >-
  https://www.fastly.com/documentation/reference/vcl/variables/client-connection/client-socket-tcpi-data-segs-in
---

**Type:** INTEGER  
**Access:** read-only

**Available in:** recv, deliver, log, error

The number of packets received from the client on this connection with a
positive data length (e.g., pure control packets do not count). This
may include spurious retransmissions.

Unlike `client.socket.tcpi_segs_in`, `client.socket.tcpi_data_segs_in` excludes segments carrying no data (e.g., pure ACK).
