On Tue, 23 May 2000, Jaye Mathisen wrote: > FreeBSD 3.4, NNTPcache 2.4.0b3... > > Ran b2 a while back, and I seem to recall it working fine. > > > So I install b3 today, and fire it up. It merrily merges in the active > stuff from my backend newsservers, then tells me it's ready to rock. > > news 1573 0.0 0.2 132300 1280 ?? Is 11:43PM 0:00.02 > nntpcached: waiting for connections (nntpcached) > root 1574 0.0 0.2 132308 1268 ?? I 11:43PM 0:00.00 > nntpcached: watch: ready (nntpcached) > > > The problem? No listen() socket is open. I tried the -b option, and that > didn't help. > > proxy-01-real# netstat -an | grep 119 > tcp 0 0 *.9119 *.* LISTEN > proxy-01-real# lsof | grep TCP > named 137 root 21u inet 0xcef6bf00 0t0 TCP > proxy-01-real.cdsnet.net:domain (LISTEN) > named 137 root 23u inet 0xcef6cf00 0t0 TCP > localhost:domain (LISTEN) > portmap 145 daemon 4u inet 0xcef6cde0 0t0 TCP *:sunrpc > (LISTEN) > inetd 186 root 4u inet 0xcef6ccc0 0t0 TCP *:telnet > (LISTEN) > sshd1 241 root 3u inet 0xcef6cba0 0t0 TCP *:ssh > (LISTEN) > sshd1 277 root 5u inet 0xcef6ca80 0t0 TCP > proxy-01-real.cdsnet.net:ssh->schizo.cdsnet.net:848 (ESTABLISHED) > nntpcache 1573 news 4u inet 0xcef6c600 0t0 TCP *:9119 > (LISTEN) > > The http socket is open, but not the NNTP socket. > > All the backend servers are up, telneting to them shows connections on the > ports listed in nntpcache.servers... > > What am I missing here? There is a bug in b3 that does this. It has been reported by several others. I moved the createPort() call for the NNTP port before the call for the createPort for the HTTP port in nntpcache.c. Now the NNTP port works, and the HTTP port doesn't! It is probably a uninitialized variable somewhere. While you are in the code, you might want to comment out the call to watch_init(). It bugs me when people try to spy on me without telling me first. Tom