Hi,

Recently, in one of my environments, I found "telnet xxxx 8649" didn't return a 
well-formed xml document. After some checking, I found gmond might lose to send 
out some characters. For example, I got some xml document like "<METRIC 
NAME="part_max_used" VAL="13.8" TYPE="float" UNITS="%" TN="55" TMAX="180" 
<EXTRA_DATA>".

After read the code, I think usage of "apr_socket_send" in "gmond.c" has 
defect. We just check return value of "apr_socket_send" but do NOT check how 
many characters have been sent. I gave a patch in attachment. FYI

Thanks,

Jerry







网易邮箱,中国第一大电子邮件服务商

Attachment: apr_send.patch
Description: Binary data

------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
Ganglia-developers mailing list
Ganglia-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ganglia-developers

Reply via email to