Hi all,
 
Attached a patch to fix broken functionality (caused by fread()'s bad behaviour) in kannel-monitor script.
 
We have observed that with only one call to fread($buffer,200000), the script does not receive the entire xml status document, for documents bigger than 10K aproximately. It only receives something in the 2000-5000 bytes range.
 
So the symthom is that the smsc links summary says, for example, 48 total links, only 5 online, and 0 disconnected/connecting/reconnecting.
 
I have confirmed this behaviour both with Apache/2.0.45 PHP/4.3.3 and Apache/1.3.27 PHP/4.3.3 combinations.
 
This patch has a safer way to be sure to read the entire xml document, as feof() seems to be more reliable than fread() alone.
 
Cheers.
 
Angel Fradejas
Mediafusi�n Espa�a, S.A.
[EMAIL PROTECTED]
www.mediafusion.es
Tel +34 91 252 32 00
Fax +34 91 252 59 69

Attachment: kannel-monitor.patch
Description: Binary data

Reply via email to