🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nn
2 messages
2 total messages Started by James Elliott Wed, 23 Oct 1991 16:52
Separating read-server from post-server
#2189
Author: James Elliott
Date: Wed, 23 Oct 1991 16:52
25 lines
1958 bytes
At our site it would be very nice if we could have nn collect and
display all of its news using a different nntp server than the one
used for posting.

Why do this? Because the department's news spool machine is not very
well connected and is also very slow, so it would be nice to get our
news from a nearby server that is better. But this other server allows
us read-only service, so we need to use the department's to post.

nn presently makes the assumption that the server being used to read
is the same server that should be used for posting. Is there any good
reason why this assumption should hold? If not, how difficult would it
be to change nn to use two different servers? Clearly, the global
can_post flag would need to be based on the posting server, not the
reading server.

Does nn use the open socket to the nntp server when implementing the
:post command? If so, it will be necessary to keep a separate socket
open for posting. If not, it seems that a patch to the mini-inews is
all that would be needed, except for fooling nn into realizing that
posting is possible despite the fact that news is coming from a
read-only server.
--
Jim Elliott                          elliott@veronica.cs.wisc.edu
[X.400: C=us; ADMD= ; PRMD=xnren; O=UW-Madison; OU=cs; S=elliott]
Re: Separating read-server from post-server
#2193
Author: Peter Andersen
Date: Thu, 24 Oct 1991 08:03
38 lines
2731 bytes
In <1991Oct23.165233.14538@spool.cs.wisc.edu> elliott@veronica.cs.wisc.edu (James Elliott) writes:

>At our site it would be very nice if we could have nn collect and
>display all of its news using a different nntp server than the one
>used for posting.

>nn presently makes the assumption that the server being used to read
>is the same server that should be used for posting. Is there any good
>reason why this assumption should hold? If not, how difficult would it
>be to change nn to use two different servers? Clearly, the global
>can_post flag would need to be based on the posting server, not the
>reading server.

>Does nn use the open socket to the nntp server when implementing the
>:post command? If so, it will be necessary to keep a separate socket
>open for posting. If not, it seems that a patch to the mini-inews is
>all that would be needed, except for fooling nn into realizing that
>posting is possible despite the fact that news is coming from a
>read-only server.

We did something of the kind at a time.
The way we did this, was by changing the mini-inews that comes with
nntp: nn uses inews when posting, so (almost) no changes in nn are required.

In inews.c we changed SERVER_FILE to SEC_SERVER_FILE, and then defined 
SEC_SERVER_FILE in conf.h. This contained the name of the server inews should 
connect to for *posting* .
The server used for *reading* was still named in SERVER_FILE.

When nn connects to a NNTP server, it checks to see if posting is OK and
says so in the message line. With the above solution, posting for the server
nn connects to does not have to have permission for posting, since the server
that does the actual posting is another one. This means that the message
(Posting OK) or (No posting) that nn comes with, when connecting to the nntp-
server for reading, may be a bit confusing. For this reason, we removed this
from nn.

Peter Andersen
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads