Article delegate-en/4582 of [1-5169] on the server localhost:119
  upper oldest olders older1 this newer1 newers latest
search
[Top/Up] [oldest] - [Older+chunk] - [Newer+chunk] - [newest + Check]
[Reference:<_A4577@delegate-en.ML_>]
Newsgroups: mail-lists.delegate-en

[DeleGate-En] Re: DeleGate as a caching NNTP server
24 Sep 2009 11:48:49 GMT Florent Bautista <pyyiqbdyi-aipiirakgulr.ml@ml.delegate.org>


Hi,

Thank you a lot for your work.

I tested the 9.9.5-pre12 version, using NNTPCONF=ondemand configuration,
and I don't know if I missed something but it seems that my Delegate
server always connects to the serveur specified in "MOUNT" option.

Let me explain this :
- on a first client, I download articles from my Delegate server, that
were not cached, so my Delegate server put them in cache (I can see this
in logs).
- a few minutes later, on a second client, I download the same articles
than on the first client.
- in Delegate logs, I do not see informations about caching (like if it
was new articles), instead I see messages from the "ondemand" option,
like these ones :

09/24 12:07:08.81 [9391] 50+0: ==== waiting_ondemand[15] nntp.c:1324 (1)
EOF=1
09/24 11:07:08.91 [9391] 50+0: ==== stab OK, connected.
09/24 11:07:08.91 [9391] 50+0: ==== stab done BBB0
11:07:08[9391][9391]BBB0 0/1/0/1 ##Xfflush(-1) suppressed <=
_-fcloseFILE2.c:10
09/24 12:07:08.91 [9391] 50+0: ==== waiting_ondemand nntp.c:1324 (2) OK
B78DBBB0/0
09/24 12:07:08.91 [9391] 50+0: ## S-C 381 more authentication required [][]
09/24 12:07:09.10 [9391] 50+0: #### AUTHINFO-RESP: 281 News.GigaNews.Com^M
09/24 12:07:09.12 [9391] 50+0: getting HELP from news-europe.giganews.com...
09/24 12:07:09.19 [9391] 50+0: shared with parent? :
/var/delegate/cache/nntp/news-europe.giganews.com/lib/HELP
09/24 12:07:09.19 [9391] 50+0: reuse LIST [wildmat][age=994] 215
newsgroups follow^M
09/24 12:07:09.19 [9391] 50+0: CLOSE previous cache: private=0 TIMEOFF=0
/var/delegate/cache/nntp/news-europe.giganews.com/LIST/active
09/24 12:07:09.19 [9391] 50+0: setLISTcache: private=0 created=0
TIMEOFF=0 /var/delegate/cache/nntp/news-europe.giganews.com/LIST/active
09/24 12:07:09.19 [9391] 50+0: with LIST ACTIVE [wildmat] =
/var/delegate/cache/nntp/news-europe.giganews.com/LIST/active
09/24 12:07:09.19 [9391] 50+0: reuse pathost[news5.aus1.giganews.com] in
[age=992] /var/delegate/cache/nntp/news-europe.giganews.com/lib/pathhost
09/24 12:07:09.19 [9391] 50+0: #### require AUTHINFO for 'MODE'
09/24 12:07:09.83 [9391] 50+0: AUTHINFO OK [florent].
09/24 12:07:10.19 [9391] 50+0/1: ---- put cache: 211 24495039 15759058
40254096 alt.binaries.hdtv.french^M
09/24 12:07:10.21 [9391] 50+0/1: Switched GROUP alt.binaries.hdtv.french
[news-europe.giganews.com:119] [1]

And my Delegate server is connected to the stab server. Even if
articles are cached !

Have I missed something ?

Thank you for your answer.

Florent.

Yutaka Sato a écrit :
> Hi,
>
> It has been so long since I stopped using DeleGate as a NTTP/NNTP
> caching proxy (or a server merging proxy) ...   In these days I use
> the NNTP proxy feature only for NNTP/HTTP gateway in which DeleGate
> act as a "caching proxy" as you said.
>
> At the time when I developed NNTP proxy, the network news was very
> active and people were eager to check the latest articles and
> newsgroups without delay.  Thus for example, connecting to a news
> server and getting NEWGROUPS at the beginning was very usual
> action of news-readers.  Also there were several other reasons why
> a caching proxy for NNTP was not so necessary.  And implementing
> cacheing servers of stateful protocol like NNTP or FTP is not
> so simple with underlining libraries available at that time.
>
> Since NNTP caching proxy is still interesting theme for me, I made
> a caching NNTP proxy which postpones connections to servers until
> it become necessay, based on a stab server as a threads, as the
> enclosed patch.  It is uploaded as DeleGate/9.9.5-pre12.
> You can enable the feature with the NNTPCONF="ondemand" option.
> I tested it with two news-readers "Thunderbird" and "vin/cosmos",
> with the following configurations:
>
> (1) NNTPCONF=ondemand
>     CACHE=do
>     SERVER=nntp://www.delegate.org
>
> (2) NNTPCONF=ondemand
>     CACHE=do
>     SERVER=nntp
>     MOUNT="* nntp://public.teranews.com/fj.*,comp.*"
>
> (3) NNTPCONF=ondemand
>     CACHE=do
>     SERVER=nntp
>     MOUNT="* nntp://public.teranews.com/*"
>     MOUNT="* nntp://www.delegate.org/*"
>
> These example seems working.
>
>
> In message <_A4550@delegate-en.ML_> on 08/20/09(20:38:22)
> you Florent Bautista <pyyiqbdyi-aipiirakgulr.ml@ml.delegate.org> wrote:
>  |I would like to run DeleGate as a caching NNTP server. I mean, it must 
>  |have his own cache, and when it does not have the requested ressource in 
>  |its cache, it have to ask it to a "master" server.
>  |But DeleGate does not act as I expect...
>  |
>  |I use this configuration:
>  |
>  |SERVER=nntp://login:password@giganews../
>  |AUTH=none
>  |AUTHORIZER="-cmd{/var/delegate/nntp-auth.sh %U %P}"
>  |CACHE=do
>  |RELIABLE="*"
>  |NNTPCONF=upact:300/150/60
>  |DGROOT=/var/delegate
>  |ADMIN=newsmaster@my-usenet-service..fr
>  |
>  |But, every time a client connects to my caching server (DeleGate), this 
>  |one ALWAYS connects to "news-europe.giganews.com", even if my client is 
>  |not authentified nor asked a ressource !!!
>  |The "ident" message sent to my client is the one of 
>  |"news-europe.giganews.com" ("200 News.GigaNews.Com") but not mine 
>  |(DeleGate's one).
>  |This behaviour is not really what I expect of "a caching server"...
>  |I used "MOUNT" option in my configuration, but it's exactly the same...
>  |
>  |Do you know what I mean ? And do you know how to configure DeleGate to 
>  |act as I want (i.e. DeleGate first have to look if it has the asked 
>  |ressource (article, list, etc.), and if it does not have it or if the 
>  |ressource expired, ask it to "news-europe.giganews.com" in my case) ?
>
> Cheers,
> Yutaka
> --
>   9 9   Yutaka Sato <y.sato@delegate.org> http://delegate.org/y.sato/
>  ( ~ )  National Institute of Advanced Industrial Science and Technology
> _<   >_ 1-1-4 Umezono, Tsukuba, Ibaraki, 305-8568 Japan
> Do the more with the less -- B. Fuller


-- 
Florent Bautista
06 09 93 75 27

     __o
   _'\(,_
  (_)/ (_)


  admin search upper oldest olders older1 this newer1 newers latest
[Top/Up] [oldest] - [Older+chunk] - [Newer+chunk] - [newest + Check]
@_@V