Re: NNTPC: Still no chance with Solaris 2.5?

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

 




	Hello,

	> > - starts well
	> > - gets "active", "active.times" and "newsgroups" but doesn't write them
	> > - says "update daemon finished" as last syslog message
	> > - doesn't accept any connections (times out)
	> I am running nntpcache on Solaris 2.5.1 with exactly the same behavior :(
	> But all this only in the case of nntpcache speaking with the provider's
	> INN 1.4 unoff4. When I am trying it with our internal INN 1.4 sec server
	> nntpcache running smoothly and does the job.

	I can't confirm that.
	I just made a test to an inn1.4sec2 server with the same result.

	Ciao!
	           /Frank

Hallo,
The initial behaveoir for nntpcache-0.93.2 was the same 
as above described.
I fixed one bug which makes 
The sparc-works compiler complains about empty goto marks
something like

	goto bla;

	...

	bla: /*no command behind that mark*/
	}

I changed to
	goto bla;
	...
	bla:  ;
	}
and about empty case-marks in switch.
A friend of mine says that these complainments are
korrekt, because it is incorrect c-syntax.
But one major bug was in nntpcache.c where all descriptors < 255
were closed because of disabling controlling tty I think.
I made a simple closelog() at that place and now I can connect
nntpcached. But after establishing a connection to nntpcached
All nntp-commands are not working right.
On "Group" I got no such group. On "List" nothing follows
exept a "215" and a "." , wwhen I remember corectly.
But in syslog-files I can see that he has
build successfully a connection to the remote newsserver
and that he has done something like list.
But there is no such think as "cache.mmap"
My guess is that somewhat is broken between the
updatedaemon and the forked daemon. I tryed
anonymous mmap from config-file, but this changes nothing

Regards,
	David
ps: sorry for that bad english but I am in hurry.

Here slightly modified patch:
Files in nntpcache-0.93.2.UL-mod are the files I have 
changed.


Common subdirectories: nntpcache-0.93.2UL-mod/CVS and nntpcache-0.93.2UL/CVS
Only in nntpcache-0.93.2UL-mod: Makefile
diff -c nntpcache-0.93.2UL-mod/acc.c nntpcache-0.93.2UL/acc.c
*** nntpcache-0.93.2UL-mod/acc.c	Sun Oct  6 15:43:53 1996
--- nntpcache-0.93.2UL/acc.c	Wed Sep  4 17:02:05 1996
***************
*** 367,373 ****
  						goto good;
  				continue;
  			good:
- 				;
  			}
  		}
  
--- 367,372 ----
diff -c nntpcache-0.93.2UL-mod/article.c nntpcache-0.93.2UL/article.c
*** nntpcache-0.93.2UL-mod/article.c	Sun Oct  6 15:38:12 1996
--- nntpcache-0.93.2UL/article.c	Sat Oct  5 11:18:28 1996
***************
*** 224,230 ****
  			Stats->body_cached_bytes += stack->used-1;
  			break;
  		default:
- 			break;
  		}
  	}
  	{
--- 224,229 ----
***************
*** 317,323 ****
  			emitf ("%s %d <%s> status\r\n", NNTP_NOTHING_FOLLOWS, artno, msgid);
  		break;
  	default:
- 		break;
  	}
  }
  
--- 316,321 ----
***************
*** 613,619 ****
  					strStackFree (art_stack);
  				return FALSE;
  			found:
- 				;
  			}
  		} else
  		{
--- 611,616 ----
***************
*** 818,824 ****
  		case c_stat:
  			break;
  		default:
- 			break;
  		}
  		if (munmap(buf, len)!=0)
  			loge (("couldn't munmap %s (%d length)", artfile, len));
--- 815,820 ----
diff -c nntpcache-0.93.2UL-mod/nntpcache.c nntpcache-0.93.2UL/nntpcache.c
*** nntpcache-0.93.2UL-mod/nntpcache.c	Sun Oct  6 15:51:50 1996
--- nntpcache-0.93.2UL/nntpcache.c	Sat Oct  5 11:18:32 1996
***************
*** 559,565 ****
  	init_mmalloc(NULL);
  #endif
  
- /*
  	if (strstr (VERSION, "UL"))
  		fprintf (stderr, "\
  NOTE:    This version of NNTPCACHE is unlicensed. Government and\n\
--- 559,564 ----
***************
*** 570,576 ****
  	 details, or send email to nntpcache-license@nntpcache.org.\n\
  \n\
  	-nntpcache development team\n");
- */
  
  	while ((c = getopt (argc, argv, "einb:rc:s")) != -1)
  		switch (c)
--- 569,574 ----
***************
*** 650,661 ****
  #else
  		256;
  #endif
- 		/*
  		while (n)
  			close (--n);
- 		*/
  
- 		closelog();
  #ifdef HAVE_DAEMON
  		daemon(1, 0);
  #else
--- 648,656 ----
***************
*** 892,898 ****
  							scfg->fd=-1;
  						}
  #ifdef SO_SNDBUF
! 					setsockopt (client, SOL_SOCKET, SO_SNDBUF, (char *) &con.outputBufferSize, sizeof con.outputBufferSize);
  #endif
  					if (client != 0)
  					{
--- 887,893 ----
  							scfg->fd=-1;
  						}
  #ifdef SO_SNDBUF
! 					setsockopt (client, SOL_SOCKET, SO_SNDBUF, &con.outputBufferSize, sizeof con.outputBufferSize);
  #endif
  					if (client != 0)
  					{
Only in nntpcache-0.93.2UL-mod: nntpcache.config


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

Powered by Linux