Code

if check_tcp was called with -e but not -s, it would hang in a call to my_recv. the
authorM. Sean Finney <seanius@users.sourceforge.net>
Tue, 3 May 2005 01:52:19 +0000 (01:52 +0000)
committerM. Sean Finney <seanius@users.sourceforge.net>
Tue, 3 May 2005 01:52:19 +0000 (01:52 +0000)
commit3e5b9b3d3256792f02c53b3bce0cb5ae6c147428
treef39a3a16c7ae6957d81c686b711f0a2090d8984e
parent1cd64d081d1745436dd7c41826dfb05672dd26aa
if check_tcp was called with -e but not -s, it would hang in a call to my_recv.  the
fix committed here adds on more piece of logic to the check to see if more data needs
to be read, avoiding the deadlock call.  a better fix would be to not use these "voodoo"
heuristics and instead use poll() or select(), but that's quite a bit more complicated.

git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1170 f882894a-f735-0410-b71e-b25c423dba1c
plugins/check_tcp.c