I have a strange problem I'm trying to track down. I use the Pear NNTP class available here. I was unable to find the authors email address, so I thought I'd ask here. I've been getting headers and jamming them into a database for later searching. This worked fine until a week or so ago, when it started taking forever to finish. I copied all my code over to another machine on my network, and it works fine, so its not a problem with the server. I put various echo statements into my code and the class files, until I found this line taking a long time:
return (is_resource($this->socket->fp) && !feof($this->socket->fp));
The trouble is, this line runs fine the first time it gets run, but takes forever each subsequent run. This code is not mine, and its a little above me.
I've checked the Socket.php class required for the NNTP class, and the files are identical, as are the PHP versions between machines. Anyone have any ideas for me?