Package: inetutils-ping
Version: 2:1.9.2.39.3a460-3
Severity: normal
Tags: newcomer
Dear Maintainer,
We have an app that forks() a copy of ping, parses it's
responses and add these responses to an RRD chart. We've
been using this successfully on various version of CentOS,
RHEL, FreeBSD and Ubuntu, but today when we ported to Debian
Jessie, we discovered that it uses line buffering.
Because it's buffering the response, our app does not get a
response from ping for several minutes, at which point it
receives a batch of lines that have been buffered. Our app
is attempting to measure latency, and the buffering is
therefore interfering with timing calculations.
For example, if you execute:
# ping -i1 127.0.0.1|tee /tmp/report.txt
Nothing will be displayed to stdout, nor logged to the file
until the pipe has accumulated enough data to fill an OS
buffer (about 4096 of bytes).
I reproduced this issue on debian:wheezy and debian:jessie
We tried the same test using iputils-ping and discovered it
works as expected (it does not buffer).
We'd prefer to use inetutils-ping as it is included by
default on most debian systems. And that makes it easily
available to Docker images built on debian.
If you agree this is something that should be corrected, I
believe it's a simple matter of adding fflush(STDOUT) around
line 191 of ping_echo.c (just before the return from the
function print_echo()).
-- System Information:
Debian Release: 8.0
APT prefers testing-updates
APT policy: (500, 'testing-updates'), (500, 'testing')
Architecture: amd64 (x86_64)
Kernel: Linux 2.6.32-504.3.3.el6.x86_64 (SMP w/2 CPU cores)
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)
Shell: /bin/sh linked to /bin/dash
Init: unable to detect
Versions of packages inetutils-ping depends on:
ii libc6 2.19-15
ii netbase 5.3
inetutils-ping recommends no packages.
inetutils-ping suggests no packages.
-- no debconf information
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]