I'm using the Net_NNTP ->post()
function. This posts a message to a NNTP server. Sometimes however (30-50% of the cases) the lasts 1 or 2 characters of every line of the message are truncated. Sometimes this works just fine.
I really can't find any way to replicate this; it's not about the text inserted in the message or so on, it's not about server load etc... I simply don't understand it.
How do you think should I debug it?
Here is some example code, acting the same as the the PHP's class.
$sh = fsockopen('nntp-server', 119);
fwrite($sh, "POST\r\n");
fwrite($sh, $article);
fwrite($sh, "\r\n.\r\n");
$article
is always the same. The server i'm connecting to a cluster of know to be reliable servers of a respectable ISP, i don't think that to be the problem!
This really has no sense to me.