check_tcp: Don't close connection too early
commitcfb50add532c1b5c80ea8214340b0a908a7fab65
authorjuliopedreira <julio.pedreira@gmail.com>
Tue, 10 Sep 2013 08:11:12 +0000 (10 10:11 +0200)
committerHolger Weiss <holger@zedat.fu-berlin.de>
Tue, 10 Sep 2013 10:16:46 +0000 (10 12:16 +0200)
tree2a678c2bab011fb4e54718c353d0e7b7e672914e
parent5bfca4b34d15ef40239ed6074b9ff9c061022946
check_tcp: Don't close connection too early

Closing the connection because the bytes received are less than the
buffer size assumes that all the bytes will be received in one go.  This
is not always true!
plugins/check_tcp.c