Thread View: news.software.nntp
6 messages
6 total messages
Started by Jon Holdsworth
Fri, 22 Mar 1996 00:00
INN 1.4unoff3 and tin, minor problems
Author: Jon Holdsworth
Date: Fri, 22 Mar 1996 00:00
Date: Fri, 22 Mar 1996 00:00
22 lines
1368 bytes
1368 bytes
I am using INN 1.4unoff3 under Red Hat Linux. It is installed and working fine. I have just used nntpget to obtain a couple of hundred megs of news from a friendly news site, prior to setting up proper feeding. The articles came down (slowly) without error. When I fire up tin -r to read news from our local server, I get a few "Bad Overview Record - <newsgroup>" messages, mainly for the alt. groups it seems, but it may be a general thing. I can control-C through them and then tin works fine afterwards. The NOV database is on the _server_, not on the _reader_ machine, so maybe tin just simply cant access it. I know tin is not completely compatible with INN, but I also know tin can use NOV (overview) info. Can anyone enlighten me as to the possible causes of the above message? Jon Holdsworth
Re: INN 1.4unoff3 and tin, minor problems
Author: Dave Barr
Date: Fri, 22 Mar 1996 00:00
Date: Fri, 22 Mar 1996 00:00
10 lines
879 bytes
879 bytes
In article <4it5rv$jl5@news.alexia.net.au>, Jon Holdsworth <jon@melb.alexia.net.au> wrote: >When I fire up tin -r to read news from our local server, I get a >few "Bad Overview Record - <newsgroup>" messages, This question gets asked almost daily here. It's a FFAQ. --Dave
Re: INN 1.4unoff3 and tin, minor problems
Author: billy
Date: Sun, 24 Mar 1996 00:00
Date: Sun, 24 Mar 1996 00:00
233 lines
6820 bytes
6820 bytes
Jon Holdsworth <jon@melb.alexia.net.au> writes:
> : >When I fire up tin -r to read news from our local server, I get a
> : >few "Bad Overview Record - <newsgroup>" messages,
> : This question gets asked almost daily here. It's a FFAQ.
> Oh good. Because I havent been able to find an answer in the FAQ's.
> Hopefully someone will provide an answer on an almost daily basis too?
There are two ways to deal with this in tin (it's not inn's problem).
This applies to tin v1.2 pl2. First and easiest is simply increasing
the size of the buffer that's being overrun. In art.c do this -
read_xover_file (group_name, min, max)
char *group_name;
long min;
long max;
{
char *p, *q;
char buf[4096]; /* <<<--- was 1028 */
char art_full_name[LEN];
char art_from_addr[LEN];
FILE *fp;
Then, as long as you have it open, dump the bad overview error
message code for references (this is most of the problem but tin
reads this line from the article file itself), number of bytes
and message id (which tin also gets from the article). No point
in issuing error messages for something that isn't even used..
They are father down in this same function, search for 'SKIP'
and you'll land on the message id - references and number of
bytes immediately follow. Just comment out the bad overview
error message lines.
Or, you can try the appended patch which mallocs chunks of buffer
as needed. I notice no significant increase in memory used by
tin (which already uses plenty) from the above patch though, and
it is ever so slightly faster than that below, which does make a
difference on groups with thousands of articles in them. One
godd example in misc.jobs.offered, where a majority of articles
are crossposted like crazy and the overview file is quite big.
Billy Y..
Newsgroups: news.software.nntp
>From: Tim Pierce <twpierce@midway.uchicago.edu>
Subject: Re: Need Help: "Bad Overview Records"
Date: Sun, 21 Jan 1996 16:56:10 GMT
[...]
I wrote a patch to TIN 1.2 to dynamically resize the overview
buffers, but because I don't actually use TIN myself I haven't
tested it. Feel free.
*** art.c.orig Wed Dec 13 12:24:43 1995
--- art.c Sun Dec 17 10:04:52 1995
***************
*** 1137,1143 ****
long max;
{
char *p, *q;
! char buf[1024];
char art_full_name[LEN];
char art_from_addr[LEN];
FILE *fp;
--- 1137,1143 ----
long max;
{
char *p, *q;
! char *buf;
char art_full_name[LEN];
char art_from_addr[LEN];
FILE *fp;
***************
*** 1152,1159 ****
return FALSE;
}
! while (fgets (buf, sizeof (buf), fp) != (char *) 0) {
if (strcmp (buf, ".") == 0) {
break;
}
--- 1152,1160 ----
return FALSE;
}
! while ((buf = safe_fgets (fp)) != (char *) 0) {
if (strcmp (buf, ".") == 0) {
+ free (buf);
break;
}
***************
*** 1173,1178 ****
--- 1174,1180 ----
q = strchr (p, '\t');
if (q == (char *) 0) {
error_message ("Bad overview record '%s'", buf);
+ free (buf);
continue;
} else {
p = q + 1;
***************
*** 1185,1190 ****
--- 1187,1193 ----
if (q == (char *) 0) {
error_message ("Bad overview record (Subject) '%s'", p);
debug_nntp ("read_xover_file", "Bad overview record (Subject)");
+ free (buf);
continue;
} else {
*q = '\0';
***************
*** 1199,1204 ****
--- 1202,1208 ----
if (q == (char *) 0) {
error_message ("Bad overview record (From) '%s'", p);
debug_nntp ("read_xover_file", "Bad overview record (From)");
+ free (buf);
continue;
} else {
*q = '\0';
***************
*** 1217,1222 ****
--- 1221,1227 ----
if (q == (char *) 0) {
error_message ("Bad overview record (Date) '%s'", p);
debug_nntp ("read_xover_file", "Bad overview record (Date)");
+ free (buf);
continue;
} else {
*q = '\0';
***************
*** 1231,1236 ****
--- 1236,1242 ----
if (q == (char *) 0) {
error_message ("Bad overview record (Msg-id) '%s'", p);
debug_nntp ("read_xover_file", "Bad overview record (Msg-id)");
+ free (buf);
continue;
}
p = q + 1;
***************
*** 1242,1247 ****
--- 1248,1254 ----
if (q == (char *) 0) {
error_message ("Bad overview record (References) '%s'", p);
debug_nntp ("read_xover_file", "Bad overview record (References)");
+ free (buf);
continue;
}
p = q + 1;
***************
*** 1253,1258 ****
--- 1260,1266 ----
if (q == (char *) 0) {
error_message ("Bad overview record (Bytes) '%s'", p);
debug_nntp ("read_xover_file", "Bad overview record (Bytes)");
+ free (buf);
continue;
} else {
*q = '\0';
***************
*** 1267,1272 ****
--- 1275,1281 ----
if (!*p || (*p < '0' && *p > '9')) {
error_message ("Bad overview record (Lines) '%s'", p);
debug_nntp ("read_xover_file", "Bad overview record (Lines)");
+ free (buf);
continue;
}
} else {
***************
*** 1305,1310 ****
--- 1314,1320 ----
debug_print_header (&arts[top]);
top++;
+ free (buf);
}
fclose (fp);
***************
*** 1688,1690 ****
--- 1698,1741 ----
range = range / 2;
}
}
+
+ /*
+ * safe_fgets
+ *
+ * Return the next line from a file, regardless of how long it is.
+ */
+
+ char *
+ safe_fgets (f)
+ FILE *f;
+ {
+ char *buf = NULL;
+ int total = 0;
+ int i = 0;
+ int chunk = 256;
+
+ buf = (char *) malloc (chunk * sizeof(char));
+
+ while (1) {
+
+ if (fgets (buf + total, chunk, f) == NULL)
+ {
+ if (total) {
+ buf[strlen(buf)] = '\0';
+ return buf;
+ } else
+ return NULL;
+ }
+
+ if (strlen (buf + total) < chunk - 1)
+ {
+ buf[strlen(buf)] = '\0';
+ return buf;
+ }
+
+ total += chunk;
+
+ buf = (char *) realloc (buf, total * sizeof(char));
+ }
+ }
+
Re: INN 1.4unoff3 and tin, minor problems
Author: Dave Barr
Date: Sun, 24 Mar 1996 00:00
Date: Sun, 24 Mar 1996 00:00
24 lines
1463 bytes
1463 bytes
In article <4j4rc6$bmb@news.alexia.net.au>, Jon Holdsworth <jon@melb.alexia.net.au> wrote: >Dave Barr (barr@math.psu.edu) wrote: >: In article <4it5rv$jl5@news.alexia.net.au>, >: Jon Holdsworth <jon@melb.alexia.net.au> wrote: >: >When I fire up tin -r to read news from our local server, I get a >: >few "Bad Overview Record - <newsgroup>" messages, > >: This question gets asked almost daily here. It's a FFAQ. > >: --Dave > >Oh good. Because I havent been able to find an answer in the FAQ's. From the FAQ: If you are running tin (mostly the 1.2 versions) then you will get "bad overview" messages. These don't come from inn, but from tin. Solution edit the source (art.c) to increase the buffer size for overview information from 1024 bytes to at least 4096 bytes. --Dave
Re: INN 1.4unoff3 and tin, minor problems
Author: Terry Kennedy, Operations Mgr.
Date: Mon, 25 Mar 1996 00:00
Date: Mon, 25 Mar 1996 00:00
13 lines
1422 bytes
1422 bytes
In article <4j4rc6$bmb@news.alexia.net.au>, jon@melb.alexia.net.au (Jon Holdsworth) writes:
> Oh good. Because I havent been able to find an answer in the FAQ's.
> Hopefully someone will provide an answer on an almost daily basis too?
tin's overview handling in 1.2x was pretty buggy (as were other parts of
the package). The 1.3 beta is much improved, though it still has some prob-
lems. Look on ftp.scn.de in /pub/.disk1/news/clients/tin/tin-beta.tar.gz.
Terry Kennedy Operations Manager, Academic Computing
terry@spcvxa.spc.edu St. Peter's College, Jersey City, NJ USA
+1 201 915 9381 (voice) +1 201 435-3662 (FAX)
Re: INN 1.4unoff3 and tin, minor problems
Author: Jon Holdsworth
Date: Mon, 25 Mar 1996 00:00
Date: Mon, 25 Mar 1996 00:00
17 lines
1115 bytes
1115 bytes
Dave Barr (barr@math.psu.edu) wrote: : In article <4it5rv$jl5@news.alexia.net.au>, : Jon Holdsworth <jon@melb.alexia.net.au> wrote: : >When I fire up tin -r to read news from our local server, I get a : >few "Bad Overview Record - <newsgroup>" messages, : This question gets asked almost daily here. It's a FFAQ. : --Dave Oh good. Because I havent been able to find an answer in the FAQ's. Hopefully someone will provide an answer on an almost daily basis too? Jon H
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