Re: Bug2

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I've had a look through ihave.c and sockets.c in nntpcache 1.0.7.1
and belive I've found the reason why I was getting the errors previously
mentioned.

In attachServer() [sockets.c] the connection *always* sends a mode reader
command when a connection is opened to a host.  
This is obviously going to bugger up any ihave attempts.

sockets.c is full of GOTO statements.  Goto's have their place, however
the whole code structure is a mess and needs rewritten from scratch.
Less assumptions should be made when opening connections, e.g. ihave.c should
pass an arg to attachServer() saying 'I want an INN connection' so it doesn't
do a mode reader command (and subsequent checking of the return codes).
Also other attachServer() calls in Cfemit, etc need something similar.

I've been on this list for a week now and yet I don't know *who* is writing
/ supporting nntpcache - is anyone or is it a pure volunteer effort?

Paul Gregg


--
 The Internet Business Ltd, Holywood House, Innis Court, Holywood, BT18 9HF
 pgregg@tibus.net                                     http://www.tibus.net/
            Phone: +44 (0)1232-424190  Fax: +44 (0)1232-424709 
           Eight out of every five people are math illiterates.


[Index of Archives]     [Yosemite]     [Yosemite Campsites]     [Bugtraq]     [Linux]     [Trn]

Powered by Linux