# Haproxy stats writes only after TCP connection is closed

**URL:** <https://discourse.haproxy.org/t/haproxy-stats-writes-only-after-tcp-connection-is-closed/7280>\
**Category:** Help!\
**Created:** [January 11, 2022, 7:58pm UTC](https://discourse.haproxy.org/t/haproxy-stats-writes-only-after-tcp-connection-is-closed/7280 "2022-01-11T19:58:34Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![os11k](https://avatars.discourse-cdn.com/v4/letter/o/ce7236/32.png) [@os11k](https://discourse.haproxy.org/u/os11k)\
**Post date:** [January 11, 2022, 7:58pm UTC](https://discourse.haproxy.org/t/haproxy-stats-writes-only-after-tcp-connection-is-closed/7280/1 "2022-01-11T19:58:34Z")

</div>

I’m using ha proxy official docker image: haproxy:2.4.11-alpine3.15

Everything seems to work fine, but unfortunately seems statistic is not displayed correctly.

So if I have client with open connection till Haproxy it will show 0 bytes all day long, until my client will close connection.

Seems statistic is written only after TCP connection is closed. Is it a bug or feature?
