Thread View: news.software.nntp
11 messages
11 total messages
Started by Mark Burkley
Wed, 25 Nov 1998 00:00
XHDR path doesn't work in INN 2.2 ?
Author: Mark Burkley
Date: Wed, 25 Nov 1998 00:00
Date: Wed, 25 Nov 1998 00:00
60 lines
2172 bytes
2172 bytes
Hello NNTP experts,
I have written a client side filter which filters on path headers
which aren't present in the overview by using an XHDR command.
This normally works well, but some users are reporting that it just
isn't working for them. When looking at a trace I can see that the
response to an XHDR is just a single period (ie. no data).
The version of the server is:
InterNetNews NNRP server INN 2.2 23-Oct-1998
The queries look like this (slightly edited):
>>>XHDR newsgroups 177645-177663
<<<[221 newsgroups fields follows]
<<<177645 news.admin.ne
<<<177646 news.admin.ne
<<<177647 news.admin.ne
<<<177648 news.admin.ne
<<<177649 alt.astrology
<<<177650 news.admin.ne
<<<177651 news.admin.ne
<<<177652 news.admin.ne
<<<177653 alt.fan.karl-
<<<177654 news.admin.ne
<<<177655 news.admin.ne
<<<177656 alt.religion.
<<<177657 news.admin.ne
<<<177658 news.admin.ne
<<<177660 alt.slack,alt
<<<177661 news.admin.ne
<<<177662 news.admin.ne
<<<177663 alt.fan.karl-
<<<.
But for path it looks like:
>>>XHDR path 177645-177663
<<<[221 newsgroups fields follows]
<<<.
Anyone have any idea why it will return a newsgroups list but not a
path list?
Is this a switch somewhere in INN 2.2 ?
I find it a little strange that it doesn't respond with (none) like
previous versions of INN.
Any thoughts appreciated.
--
Mark Burkley mburkley @ { iol.ie | tecnomen.ie }
My address is not munged but is spam blocked. Don't cc me on
mails to yourself and you should have no problems.
Re: XHDR path doesn't work in INN 2.2 ?
Author: Clayton O'Neill
Date: Thu, 26 Nov 1998 00:00
Date: Thu, 26 Nov 1998 00:00
23 lines
1750 bytes
1750 bytes
My guess is that you're talking about our users complaining about it. We no longer allow xhdr and xpat queries on headers that aren't in overview because of the large load that it causes on the server side. As far as I can tell the only news readers that use it are the various NewsWatchers and NFilter. Which one did you write? :) The problem is that the RFC doesn't allow for this behavior and there is no return code for "Header not found" or "Header not searchable". I could make it return a 501 or 502 code, but is your code ready to handle that? On Wed, 25 Nov 1998 18:39:56 GMT, Mark Burkley <mburkley@iol.ie> wrote: |I have written a client side filter which filters on path headers |which aren't present in the overview by using an XHDR command. | |This normally works well, but some users are reporting that it just |isn't working for them. When looking at a trace I can see that the |response to an XHDR is just a single period (ie. no data). | |The version of the server is: | | InterNetNews NNRP server INN 2.2 23-Oct-1998
Re: XHDR path doesn't work in INN 2.2 ?
Author: Mark Burkley
Date: Thu, 26 Nov 1998 00:00
Date: Thu, 26 Nov 1998 00:00
42 lines
2454 bytes
2454 bytes
usenet@oneill.net (Clayton O'Neill) wrote:
>My guess is that you're talking about our users complaining about it.
Yup :-)
>We no
>longer allow xhdr and xpat queries on headers that aren't in overview
>because of the large load that it causes on the server side. As far as I
>can tell the only news readers that use it are the various NewsWatchers and
>NFilter. Which one did you write? :)
NFilter.
>The problem is that the RFC doesn't allow for this behavior and there is no
>return code for "Header not found" or "Header not searchable". I could make
>it return a 501 or 502 code, but is your code ready to handle that?
A 4xx code would probably be more appropriate. I could handle either
4xx or 5xx. The question is where to go from there. Currently, if I
get anything other than 221 I abort the whole operation.
At the moment all I can do is tell people "sorry, this filter won't
work with your news server". I don't really want to implement a fall
back where it pulls the *entire* header for each article because that
would defeat the whole purpose of the exercise, especially since with
the articles you're filtering, the header is often bigger than the
body.
I can see XHDR would load the server. I guess I was thinking in terms
of saving network traffic, not in terms of server disk load. From an
end user's perspective the modem is the bottleneck.
Adding more fields to the XOVER isn't the answer either because then
you're forcing everyone to download extra info with the overview.
Pity really, because to do decent filtering you really do need access
to PATH and NNTP-POSTING-HOST to avoid morphers and the like.
--
Mark Burkley mburkley @ { iol.ie | tecnomen.ie }
Re: XHDR path doesn't work in INN 2.2 ?
Author: Clayton O'Neill
Date: Thu, 26 Nov 1998 00:00
Date: Thu, 26 Nov 1998 00:00
47 lines
3054 bytes
3054 bytes
On Thu, 26 Nov 1998 11:41:05 GMT, Mark Burkley <mburkley@iol.ie> wrote: |usenet@oneill.net (Clayton O'Neill) wrote: |>The problem is that the RFC doesn't allow for this behavior and there is no |>return code for "Header not found" or "Header not searchable". I could make |>it return a 501 or 502 code, but is your code ready to handle that? | |A 4xx code would probably be more appropriate. I could handle either |4xx or 5xx. The question is where to go from there. Currently, if I |get anything other than 221 I abort the whole operation. It looks like either a "500 Syntax error or bad command" or "501 Bad command use" is the appropriate way to handle this. Which would you prefer? |At the moment all I can do is tell people "sorry, this filter won't |work with your news server". I don't really want to implement a fall |back where it pulls the *entire* header for each article because that |would defeat the whole purpose of the exercise, especially since with |the articles you're filtering, the header is often bigger than the |body. Well, it'd still be better than downloading the entire message. Not much better, but better than nothing. |I can see XHDR would load the server. I guess I was thinking in terms |of saving network traffic, not in terms of server disk load. From an |end user's perspective the modem is the bottleneck. Yeah, I can see where NFilter would be useful. I was planning on taking a look at it myself. :) |Adding more fields to the XOVER isn't the answer either because then |you're forcing everyone to download extra info with the overview. | |Pity really, because to do decent filtering you really do need access |to PATH and NNTP-POSTING-HOST to avoid morphers and the like. Well, I could probbly start indexing on Path and NNTP-Posting-Host, but the it'll bloat the overview database a lot, and it'll only solve the problem for those two headers. I'd probably not add them to the XOVER response regardless since I doubt that all clients would handle the longer lines or the two extra fields in the response gracefully. FWIW, It looks like Typhoon has similar behavior, and from the short read of the Diablo source,it looks like it also, does, but I'm not sure. Matt, can you fill us in here?
Re: XHDR path doesn't work in INN 2.2 ?
Author: Clayton O'Neill
Date: Thu, 26 Nov 1998 00:00
Date: Thu, 26 Nov 1998 00:00
31 lines
2364 bytes
2364 bytes
On Thu, 26 Nov 1998 16:47:05 GMT, Mark Burkley <mburkley@iol.ie> wrote: usenet@oneill.net (Clayton O'Neill) wrote: | |>On Thu, 26 Nov 1998 11:41:05 GMT, Mark Burkley <mburkley@iol.ie> wrote: |>|usenet@oneill.net (Clayton O'Neill) wrote: |>|>The problem is that the RFC doesn't allow for this behavior and there is no |>|>return code for "Header not found" or "Header not searchable". I could make |>|>it return a 501 or 502 code, but is your code ready to handle that? |>| |>|A 4xx code would probably be more appropriate. I could handle either |>|4xx or 5xx. The question is where to go from there. Currently, if I |>|get anything other than 221 I abort the whole operation. |> |>It looks like either a "500 Syntax error or bad command" or "501 Bad |>command use" is the appropriate way to handle this. Which would you prefer? | |I've no preference at all. If I don't get a "221" I'll just warn the |user that it won't work. That would be an improvement on the current |situation where it just silently continues but doesn't filter. Ok, the code will now return a "501 Header not in index" error message. |>FWIW, It looks like Typhoon has similar behavior, and from the short read of |>the Diablo source,it looks like it also, does, but I'm not sure. Matt, can |>you fill us in here? I checked and it looks like Tortoise and Inktomi's news server can't return headers that aren't in the overview. As far as I can tell, INN is the only server out there that's ever had this functionality.
Re: XHDR path doesn't work in INN 2.2 ?
Author: Clayton O'Neill
Date: Thu, 26 Nov 1998 00:00
Date: Thu, 26 Nov 1998 00:00
23 lines
1912 bytes
1912 bytes
On 26 Nov 1998 05:45:13 GMT, Jeremy <jeremy@exit109.com> wrote: |Clayton O'Neill <usenet@oneill.net> wrote: | |> My guess is that you're talking about our users complaining about it. |> We no longer allow xhdr and xpat queries on headers that aren't in |> overview because of the large load that it causes on the server side. | |Ouch.. so if a client wants just one header, it has to instead start from |the beginning and grab *full* headers for all articles? And that lessens |the load? Hey, that's what I've got to do on the server end anyway. If I've got to look at it then it doesn't cost me any more to send it to the user. The problem is that unrestricted XPAT/XHDR was causing reader cpu usage to go up to 5% or more for a single reader on a box w/about 2000 readers. And even worse it was driving the disk into the ground. It _really_ sucks to have to service an XPAT/XHDR request on a header that's not indexed. Personally I think that the draft RFC should be updated to only allow XHDR/XPAT on overview headers and people that want to be able to search on arbitrary text should use the NNTP SEARCH extension.
Re: XHDR path doesn't work in INN 2.2 ?
Author: Jeremy
Date: Thu, 26 Nov 1998 00:00
Date: Thu, 26 Nov 1998 00:00
16 lines
1271 bytes
1271 bytes
Clayton O'Neill <usenet@oneill.net> wrote:
> My guess is that you're talking about our users complaining about it.
> We no longer allow xhdr and xpat queries on headers that aren't in
> overview because of the large load that it causes on the server side.
Ouch.. so if a client wants just one header, it has to instead start from
the beginning and grab *full* headers for all articles? And that lessens
the load?
--
Jeremy | jeremy@exit109.com
"The sky would not fall if an American President spoke the truth."
--Ronald Reagan
Re: XHDR path doesn't work in INN 2.2 ?
Author: Mark Burkley
Date: Thu, 26 Nov 1998 00:00
Date: Thu, 26 Nov 1998 00:00
68 lines
4039 bytes
4039 bytes
usenet@oneill.net (Clayton O'Neill) wrote:
>On Thu, 26 Nov 1998 11:41:05 GMT, Mark Burkley <mburkley@iol.ie> wrote:
>|usenet@oneill.net (Clayton O'Neill) wrote:
>|>The problem is that the RFC doesn't allow for this behavior and there is no
>|>return code for "Header not found" or "Header not searchable". I could make
>|>it return a 501 or 502 code, but is your code ready to handle that?
>|
>|A 4xx code would probably be more appropriate. I could handle either
>|4xx or 5xx. The question is where to go from there. Currently, if I
>|get anything other than 221 I abort the whole operation.
>
>It looks like either a "500 Syntax error or bad command" or "501 Bad
>command use" is the appropriate way to handle this. Which would you prefer?
I've no preference at all. If I don't get a "221" I'll just warn the
user that it won't work. That would be an improvement on the current
situation where it just silently continues but doesn't filter.
>|At the moment all I can do is tell people "sorry, this filter won't
>|work with your news server". I don't really want to implement a fall
>|back where it pulls the *entire* header for each article because that
>|would defeat the whole purpose of the exercise, especially since with
>|the articles you're filtering, the header is often bigger than the
>|body.
>
>Well, it'd still be better than downloading the entire message. Not much
>better, but better than nothing.
>
>|I can see XHDR would load the server. I guess I was thinking in terms
>|of saving network traffic, not in terms of server disk load. From an
>|end user's perspective the modem is the bottleneck.
>
>Yeah, I can see where NFilter would be useful. I was planning on taking a
>look at it myself. :)
Please do. It's created quite a bit of interest, more than I expected
to be honest. It seems to be especially popular with readers of ARS
who seem to be under attack the most these days.
>|Adding more fields to the XOVER isn't the answer either because then
>|you're forcing everyone to download extra info with the overview.
>|
>|Pity really, because to do decent filtering you really do need access
>|to PATH and NNTP-POSTING-HOST to avoid morphers and the like.
>
>Well, I could probbly start indexing on Path and NNTP-Posting-Host, but the
>it'll bloat the overview database a lot, and it'll only solve the problem
>for those two headers. I'd probably not add them to the XOVER response
>regardless since I doubt that all clients would handle the longer lines or
>the two extra fields in the response gracefully.
There doesn't seem to be any ideal solution. I was hoping to be
completely transparent so that no changes had to be made on the server
side or client side, but it looks like it's not going to work in all
situations if that's the case. Or it will work but create a
substantial load on the server which isn't desirable either.
If anyone has any ideas on a compromise, I'll gladly change my code.
>FWIW, It looks like Typhoon has similar behavior, and from the short read of
>the Diablo source,it looks like it also, does, but I'm not sure. Matt, can
>you fill us in here?
--
Mark Burkley mburkley @ { iol.ie | tecnomen.ie }
Re: XHDR path doesn't work in INN 2.2 ?
Author: Mark Burkley
Date: Fri, 27 Nov 1998 00:00
Date: Fri, 27 Nov 1998 00:00
40 lines
2655 bytes
2655 bytes
usenet@oneill.net (Clayton O'Neill) wrote:
>On Thu, 26 Nov 1998 16:47:05 GMT, Mark Burkley <mburkley@iol.ie> wrote:
>usenet@oneill.net (Clayton O'Neill) wrote:
>|
>|>On Thu, 26 Nov 1998 11:41:05 GMT, Mark Burkley <mburkley@iol.ie> wrote:
>|>|usenet@oneill.net (Clayton O'Neill) wrote:
>|>|>The problem is that the RFC doesn't allow for this behavior and there is no
>|>|>return code for "Header not found" or "Header not searchable". I could make
>|>|>it return a 501 or 502 code, but is your code ready to handle that?
>|>|
>|>|A 4xx code would probably be more appropriate. I could handle either
>|>|4xx or 5xx. The question is where to go from there. Currently, if I
>|>|get anything other than 221 I abort the whole operation.
>|>
>|>It looks like either a "500 Syntax error or bad command" or "501 Bad
>|>command use" is the appropriate way to handle this. Which would you prefer?
>|
>|I've no preference at all. If I don't get a "221" I'll just warn the
>|user that it won't work. That would be an improvement on the current
>|situation where it just silently continues but doesn't filter.
>
>Ok, the code will now return a "501 Header not in index" error message.
Thanks, I'll change my code to take that possibility into account.
>|>FWIW, It looks like Typhoon has similar behavior, and from the short read of
>|>the Diablo source,it looks like it also, does, but I'm not sure. Matt, can
>|>you fill us in here?
>
>I checked and it looks like Tortoise and Inktomi's news server can't return
>headers that aren't in the overview. As far as I can tell, INN is the only
>server out there that's ever had this functionality.
Bummer. Looks like nfilter will be pretty limited then.
--
Mark Burkley mburkley @ { iol.ie | tecnomen.ie }
Re: XHDR path doesn't work in INN 2.2 ?
Author: Kjetil Torgrim Homme
Date: Sat, 28 Nov 1998 00:00
Date: Sat, 28 Nov 1998 00:00
14 lines
1244 bytes
1244 bytes
[Roswell Coverup] > What I was really looking for was the ability to: > > filter out cross-post crap based on Newsgroups in the Newsgroup > line. While this is not in the Erols overview, I can use it in > nfilter. This information is available in the Xref header as well. Kjetil T.
Re: XHDR path doesn't work in INN 2.2 ?
Author: bill davidsen
Date: Mon, 30 Nov 1998 00:00
Date: Mon, 30 Nov 1998 00:00
21 lines
1640 bytes
1640 bytes
In article <slrn75r2ps.bic.usenet@luser.oneill.net>, Clayton O'Neill <usenet@oneill.net> wrote: | |I've no preference at all. If I don't get a "221" I'll just warn the | |user that it won't work. That would be an improvement on the current | |situation where it just silently continues but doesn't filter. | | Ok, the code will now return a "501 Header not in index" error message. I've been lurking on this, but I just want to say I think this is a great example of working out a solution to a problem. I'm sure this would bite me sometime, maybe now it won't. Thanks, guys! -- bill davidsen <davidsen@tmr.com> CTO, TMR Associates, Inc "Too soon we grow old, and too late we grow smart" -Arthur Godfrey
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