[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [leafnode-list] Something's wrong with getaline?
* Joerg Dietrich <joerg@xxxxxxxxxxxx> [010114 14:05]:
> > Jan 14 12:57:12 anna fetchnews[1387]: >GROUP de.comp.os.unix.linux.misc
> > Jan 14 12:57:12 anna fetchnews[1387]: <.
>
> But this is unusual. It seems that nntpcache handles the 502 reply
> as a multiline reply.
You're probably right.
,----
| juergen@anna:~ > telnet news.extension.net 119
| Trying 194.233.189.146...
| Connected to news.extension.net.
| Escape character is '^]'.
| 200 news.extension.net NNTPcache server V2.4.0b2 [see www.nntpcache.org]
| (c) 1996-1999 Julian Assange <proff@xxxxxx> Feb 1 2000 ready (posting ok,
| 33138 groups available).
| NEWNEWS de.comp.os.unix.linux.misc 010114 115400
| 502 NEWNEWS command disabled by administrator
| .
`----
> For a quick fix set newnews_ok to FALSE in line 1291 of
> fetchnews.c and recompile.
Omitting donewnews seems to do the trick. Thanks.
Obviously donewnews is still unfinished code, anyway.
BTW: Now that I know what caused the problem, I've alternatively tried
to fix it by changing
if ( nntpreply() != 230 ) {
return 0; /* NEWNEWS not supported or something going wrong */
}
to
if ( nntpreply() != 230 ) {
_ignore_answer(nntpin);
return 0; /* NEWNEWS not supported or something going wrong */
}
to swallow any surplus lines, if NEWNEWS is not supported by the upstream
server. This seems to work as well.
Best regards - Juergen.
--
leafnode-list@xxxxxxxxxxxxxxxxxxxxxxxxxxxx -- mailing list for leafnode
To unsubscribe, send mail with "unsubscribe" in the subject to the list