[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [leafnode-list] 2.0b8_ma3 leafnode very slow
On 05 Jul 2001 00:23:35 +0200
Matthias Andree <ma@xxxxxxxxxxxxxxxxxxxxxxxxxxxx> wrote:
> Thanks for testing.
You're welcome.
> I now have a patch which compiles:
>
> In case BeroList eats it, find it here:
>http://mandree.home.pages.de/leafnode/beta/leafnode-2.0b8_ma4-buffer.patch
This doesn't work. I get a binary file, patch says:
patch unexpectedly ends in middle of line
patch: **** Only garbage was found in the patch input.
>--cut here--8<----8<----8<----8<----8<----8<----8<----8<----8<----8<----
>
> diff -c leafnode-2.0b8_ma4/nntpd.c leafnode-2.0b8_ma4.1/nntpd.c
> *** leafnode-2.0b8_ma4/nntpd.c Mon Jul 2 02:53:07 2001
> --- leafnode-2.0b8_ma4.1/nntpd.c Thu Jul 5 00:15:33 2001
> ***************
> *** 1996,2001 ****
> --- 1996,2003 ----
> char peername[256];
> struct hostent *he;
> FILE *se;
> + const long bufsize = BLOCKSIZE;
> + char *buf = critmalloc(bufsize, "main_loop");
>
> #ifdef HAVE_IPV6
> struct sockaddr_in6 sa;
> ***************
> *** 2004,2009 ****
> --- 2006,2016 ----
> struct sockaddr_in sa;
> struct sockaddr_in peer;
> #endif
> +
> + /* set buffer */
> + fflush(stdout);
> + setvbuf(stdout, buf, _IOFBF, bufsize);
> +
> if (((err = snprintf(conffile, sizeof(conffile), "%s/config", libdir)) < 0)
> || (err >= (int)sizeof(conffile)))
> {
There should be more than that, shouldn't there?
--
Joerg Mosthaf tel.: +49(0)6221/866122
Konrad-Adenauer-Str. 17 cel.: +49(0)177/2500482
69221 Dossenheim email: Joerg_Mosthaf@xxxxxx
--
leafnode-list@xxxxxxxxxxxxxxxxxxxxxxxxxxxx -- mailing list for leafnode
To unsubscribe, send mail with "unsubscribe" in the subject to the list