🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
64 messages
64 total messages Page 2 of 2 Started by Russ Allbery Tue, 10 Mar 2009 04:56
Page 2 of 2 • 64 total messages
Re: Another adjustment - was Re: Suggestion for mailpost - was Re: [ANNOUNCE] INN 2.5.0 release candidate available
#81011
Author: Julien ÉLIE
Date: Thu, 14 May 2009 05:42
42 lines
2595 bytes
Hi D. Stussy,

>    s/:/: /  if ($_ != ~ /^[^:]+: /);
>
> You missed the trailing space.

Yep!

I have just committed your proposal.  Thanks again!


Index: mailpost.in
===================================================================
--- mailpost.in (révision 8451)
+++ mailpost.in (copie de travail)
@@ -194,6 +194,9 @@
        next ;
     }

+    # Add a space after the colon following a header name, if not present.
+    s/:/: / if ($_ !~ /^[^:]+: /);
+
     # On the first header, $line will be undefined.
     ($_, $line) = ($line, $_) ; # Swap $line and $_.

@@ -233,7 +236,7 @@
     if (/^Return-Path:\s*/sio) {
        $path = $';
        $path = $1 if ($path =~ /\<([^\>]*)\>/);
-       push@errorText, "((path: $path))\n";
+       push @errorText, "((path: $path))\n";
        next;
     }


Incidentally, @errorText is never used in mailpost...

-- 
Julien ÉLIE

« Vna salus uictis, nullam sperare salutem. » (Énée de Virgile) 
Re: Another adjustment - was Re: Suggestion for mailpost - was Re: [ANNOUNCE] INN 2.5.0 release candidate available
#81019
Author: D. Stussy
Date: Thu, 14 May 2009 21:46
5 lines
1445 bytes
> Incidentally, @errorText is never used in mailpost...

Shouldn't mailartanddie() do something with it?

Re: IPv6 changes vs. Documentation, and "nicety" of news.daily - was Re: [ANNOUNCE] INN 2.5.0 release candidate available
#81029
Author: Julien ÉLIE
Date: Fri, 15 May 2009 20:32
16 lines
2191 bytes
> The right solution here is to keep moving forward and add support to
> nnrpd for listening to multiple sockets, allow both -b and -6 to be
> given at the same time, and provide a way to trigger network_bind_all(),
> which is the behavior you really want but which may return multiple
> sockets.  It's not a particularly hard change, but it requires a
> slightly more complex listening loop in nnrpd.c that selects on multiple
> file descriptors for incoming connections similar to what innd does.

Thanks a lot, Russ, for the tip!

-- 
Julien ÉLIE

« -- Je suis mon cher ami, très heureux de te voir.
  -- C'est un alexandrin. » (Astérix) 
Re: IPv6 changes vs. Documentation, and "nicety" of news.daily - was Re: [ANNOUNCE] INN 2.5.0 release candidate available
#81028
Author: Julien ÉLIE
Date: Fri, 15 May 2009 20:39
39 lines
2896 bytes
Hi D. Stussy,

> ...But people who are upgrading will look in any "changes" or "news" named
> files first.  I obviously found it, but didn't adjust my system
> configuration files beforehand because I wasn't alerted of the change until
> something "broke."

OK, thanks for having reported the problem you encountered!

Could you please try that patch?
    http://inn.eyrie.org/trac/changeset/8463/trunk/nnrpd

(A link to download the diff is provided at the end of the page.)


>> It also reminds me of your problem with nnrpd-xxx.pid with different
>> TLS certificates on the same port!
>> By the way, did you try "Subject Alternative Names" in TLS certificates?
>
> No.  I haven't looked at that.  In the case of the virtual hosting
> situation I was thinking of, the instances would be under different domain
> names, so if you were thinking of a "wildcard" certificate, I don't think
> one may wildcard the TLD.

Subject Alternative Names are more than wildcard certificates.  You can
put several different domain names.


>>>  I had one peer complain about
>>>  connection timeouts while expireover was running.

Any news about that?

-- 
Julien ÉLIE

« Le chemin le plus court d'un point à un autre est la ligne droite,
  à condition que les deux points soient bien en face l'un de l'autre. » (Pierre Dac)
Re: IPv6 changes vs. Documentation, and "nicety" of news.daily - was Re: [ANNOUNCE] INN 2.5.0 release candidate available
#81030
Author: Julien ÉLIE
Date: Fri, 15 May 2009 20:49
14 lines
1967 bytes
> Could you please try that patch?
>    http://inn.eyrie.org/trac/changeset/8463/trunk/nnrpd

Hmm...  No sorry, please do *not* try it.
It will eat your CPU consumption!

I should use select() or something like that instead of the accept() loop...

-- 
Julien ÉLIE

« Le chemin le plus court d'un point à un autre est la ligne droite,
  à condition que les deux points soient bien en face l'un de l'autre. » (Pierre Dac) 
Re: IPv6 changes vs. Documentation, and "nicety" of news.daily - was Re: [ANNOUNCE] INN 2.5.0 release candidate available
#81033
Author: D. Stussy
Date: Sat, 16 May 2009 00:12
26 lines
2341 bytes
"Julien ÉLIE" <iulius@nom-de-mon-site.com.invalid> wrote in message
news:gukkht$eno$1@news.trigofacile.com...
> > Could you please try that patch?
> >    http://inn.eyrie.org/trac/changeset/8463/trunk/nnrpd
>
> Hmm...  No sorry, please do *not* try it.
> It will eat your CPU consumption!
>
> I should use select() or something like that instead of the accept()
loop...

I have not tried it.


As for my peer that complained (Glorb), my machine is still "unavailable"
while running expireover.  Glorb still sees "unavailable" messages when it
tries to connect (mainly timeouts), although connections that were in place
before the daily maintenance started seem to have varying degrees of
success (i.e. some articles do get through).

I use CNFS for the newsspool and traditional for the overview method.  The
only messages that get removed appear to be those that were cancelled (or
nocem'ed).  None of my CNFS buffers have yet reached 100% use on their
first cycle.

Re: IPv6 changes vs. Documentation, and "nicety" of news.daily - was Re: [ANNOUNCE] INN 2.5.0 release candidate available
#81032
Author: Julien ÉLIE
Date: Sat, 16 May 2009 00:14
13 lines
1908 bytes
Hi D. Stussy,

Here is a new patch against INNrc2:
    http://inn.eyrie.org/trac/changeset?new=8464%40trunk/nnrpd&old=8462%40trunk/nnrpd

Could you please try it?

-- 
Julien ÉLIE

« -- Il l'aura voulu.
  -- Tu crois vraiment ? » (Astérix) 
Re: IPv6 changes vs. Documentation, and "nicety" of news.daily - was Re: [ANNOUNCE] INN 2.5.0 release candidate available
#81044
Author: D. Stussy
Date: Sun, 17 May 2009 01:42
13 lines
1728 bytes
"Julien ÉLIE" <iulius@nom-de-mon-site.com.invalid> wrote in message
news:gul0i1$3cm$1@news.trigofacile.com...
> Hi D. Stussy,
>
> Here is a new patch against INNrc2:
>
http://inn.eyrie.org/trac/changeset?new=8464%40trunk/nnrpd&old=8462%40trunk/nnrpd
>
> Could you please try it?

For the moment, downloaded in unified diff format.

Re: IPv6 changes vs. Documentation, and "nicety" of news.daily - was Re: [ANNOUNCE] INN 2.5.0 release candidate available
#81045
Author: D. Stussy
Date: Sun, 17 May 2009 02:32
24 lines
2191 bytes
"Julien ÉLIE" <iulius@nom-de-mon-site.com.invalid> wrote in message
news:gul0i1$3cm$1@news.trigofacile.com...
> Hi D. Stussy,
>
> Here is a new patch against INNrc2:
>
http://inn.eyrie.org/trac/changeset?new=8464%40trunk/nnrpd&old=8462%40trunk/nnrpd
>
> Could you please try it?

1)  It compiles.
2)  It runs.

Without any address, it appears to bind to "::" (IN6_ADDR_ANY) and will
accept IPv6 and IPv4 connections.  With "-6 ::", it accepts IPv6 only.  My
test was to run it on a separate port, then to telnet into it, and see if
it connected at all.

I would still like "-4" to be an alias for "-b" especially since other
programs regularly recognize "-4" and "-6" to mean IPv4-only and IPv6-only
respectively.  Let "-b" remain but as a depreciated option for backwards
compatibility only.

Re: IPv6 changes vs. Documentation, and "nicety" of news.daily - was Re: [ANNOUNCE] INN 2.5.0 release candidate available
#81047
Author: Julien ÉLIE
Date: Sun, 17 May 2009 13:16
107 lines
5072 bytes
Hi D. Stussy,

> Without any address, it appears to bind to "::" (IN6_ADDR_ANY) and will
> accept IPv6 and IPv4 connections.  With "-6 ::", it accepts IPv6 only.  My
> test was to run it on a separate port, then to telnet into it, and see if
> it connected at all.

That works fine, then.


> I would still like "-4" to be an alias for "-b" especially since other
> programs regularly recognize "-4" and "-6" to mean IPv4-only and IPv6-only
> respectively.  Let "-b" remain but as a depreciated option for backwards
> compatibility only.

OK, no problem.  Easy to do!
I have just added "-4" to both innd and nnrpd.
I have kept "-b" for nnrpd.

The amusing part is that innd has "-I" but the code never worked (even
in INN 2.0!).  So I totally removed "-I" to only have "-4" for it.

% innd -I 0.0.0.0
innd: invalid option -- I
Usage error.



Modified: innd/innd.c
===================================================================
--- innd/innd.c 2009-05-17 10:19:39 UTC (rev 8473)
+++ innd/innd.c 2009-05-17 13:12:15 UTC (rev 8474)
@@ -403,11 +403,16 @@

     /* Parse JCL. */
     CCcopyargv(av);
-    while ((i = getopt(ac, av, "6:ac:Cdfi:l:m:o:Nn:P:rst:uH:T:X:")) != EOF)
+    while ((i = getopt(ac, av, "4:6:ac:CdfH:i:l:m:n:No:P:rst:T:uX:")) != EOF)
  switch (i) {
  default:
      Usage();
      /* NOTREACHED */
+        case '4':
+            if (innconf->bindaddress)
+                free(innconf->bindaddress);
+            innconf->bindaddress = xstrdup(optarg);
+            break;
         case '6':
             if (innconf->bindaddress6)
                 free(innconf->bindaddress6);
@@ -434,10 +439,6 @@
  case 'i':
      innconf->maxconnections = atoi(optarg);
      break;
- case 'I':
-     if (innconf->bindaddress) free(innconf->bindaddress);
-     innconf->bindaddress = xstrdup(optarg);
-     break;
  case 'l':
      innconf->maxartsize = atol(optarg);
      break;

Modified: nnrpd/nnrpd.c
===================================================================
--- nnrpd/nnrpd.c 2009-05-17 10:19:39 UTC (rev 8473)
+++ nnrpd/nnrpd.c 2009-05-17 13:12:15 UTC (rev 8474)
@@ -906,20 +906,23 @@
 #endif /* HAVE_SASL */

 #ifdef HAVE_SSL
-    while ((i = getopt(argc, argv, "6:c:b:Dfi:I:nop:P:r:s:tS")) != EOF)
+    while ((i = getopt(argc, argv, "4:6:b:c:Dfi:I:nop:P:r:s:St")) != EOF)
 #else
-    while ((i = getopt(argc, argv, "6:c:b:Dfi:I:nop:P:r:s:t")) != EOF)
+    while ((i = getopt(argc, argv, "4:6:b:c:Dfi:I:nop:P:r:s:t")) != EOF)
 #endif /* HAVE_SSL */
  switch (i) {
  default:
      Usage();
      /* NOTREACHED */
+        case '4':                       /* Bind to a certain IPv4 address. */
+        case 'b':
+            if (ListenAddr != NULL)
+                die("-b and -4 may not both be given");
+            ListenAddr = xstrdup(optarg);
+            break;
         case '6':                       /* Bind to a certain IPv6 address. */
             ListenAddr6 = xstrdup(optarg);
             break;
- case 'b': /* Bind to a certain IPv4 address. */
-            ListenAddr = xstrdup(optarg);
-     break;
  case 'c':                       /* Use alternate readers.conf. */
      ConfFile = concatpath(innconf->pathetc, optarg);
      break;



Have a nice Sunday,

-- 
Julien ÉLIE

« -- Il a beaucoup de talents...
  -- Il est doué ?
  -- Non il est riche. Il a beaucoup de talents d'or. » (Astérix) 
Re: IPv6 changes vs. Documentation, and "nicety" of news.daily - was Re: [ANNOUNCE] INN 2.5.0 release candidate available
#81054
Author: D. Stussy
Date: Sun, 17 May 2009 23:43
116 lines
5472 bytes
"Julien ÉLIE" <iulius@nom-de-mon-site.com.invalid> wrote in message
news:gup2n8$t5h$1@news.trigofacile.com...
> Hi D. Stussy,
> > Without any address, it appears to bind to "::" (IN6_ADDR_ANY) and will
> > accept IPv6 and IPv4 connections.  With "-6 ::", it accepts IPv6 only.
My
> > test was to run it on a separate port, then to telnet into it, and see
if
> > it connected at all.
>
> That works fine, then.

Now 20 hours of use and no problems.  This message was even replied to via
the modified version.

Have we accumulated enough changes to issue "rc3"?
PS:  The ISC "developmental release" page still says "rc1".

> > I would still like "-4" to be an alias for "-b" especially since other
> > programs regularly recognize "-4" and "-6" to mean IPv4-only and
IPv6-only
> > respectively.  Let "-b" remain but as a depreciated option for
backwards
> > compatibility only.
>
> OK, no problem.  Easy to do!
> I have just added "-4" to both innd and nnrpd.
> I have kept "-b" for nnrpd.
>
> The amusing part is that innd has "-I" but the code never worked (even
> in INN 2.0!).  So I totally removed "-I" to only have "-4" for it.

Looks like it was missing from the getopt string (before modification).

> % innd -I 0.0.0.0
> innd: invalid option -- I
> Usage error.
>
> Modified: innd/innd.c
> ===================================================================
> --- innd/innd.c 2009-05-17 10:19:39 UTC (rev 8473)
> +++ innd/innd.c 2009-05-17 13:12:15 UTC (rev 8474)
> @@ -403,11 +403,16 @@
>
>      /* Parse JCL. */
>      CCcopyargv(av);
> -    while ((i = getopt(ac, av, "6:ac:Cdfi:l:m:o:Nn:P:rst:uH:T:X:")) !=
EOF)
> +    while ((i = getopt(ac, av, "4:6:ac:CdfH:i:l:m:n:No:P:rst:T:uX:")) !=
EOF)
>   switch (i) {
>   default:
>       Usage();
>       /* NOTREACHED */
> +        case '4':
> +            if (innconf->bindaddress)
> +                free(innconf->bindaddress);
> +            innconf->bindaddress = xstrdup(optarg);
> +            break;
>          case '6':
>              if (innconf->bindaddress6)
>                  free(innconf->bindaddress6);
> @@ -434,10 +439,6 @@
>   case 'i':
>       innconf->maxconnections = atoi(optarg);
>       break;
> - case 'I':
> -     if (innconf->bindaddress) free(innconf->bindaddress);
> -     innconf->bindaddress = xstrdup(optarg);
> -     break;
>   case 'l':
>       innconf->maxartsize = atol(optarg);
>       break;
>
> Modified: nnrpd/nnrpd.c
> ===================================================================
> --- nnrpd/nnrpd.c 2009-05-17 10:19:39 UTC (rev 8473)
> +++ nnrpd/nnrpd.c 2009-05-17 13:12:15 UTC (rev 8474)
> @@ -906,20 +906,23 @@
>  #endif /* HAVE_SASL */
>
>  #ifdef HAVE_SSL
> -    while ((i = getopt(argc, argv, "6:c:b:Dfi:I:nop:P:r:s:tS")) != EOF)
> +    while ((i = getopt(argc, argv, "4:6:b:c:Dfi:I:nop:P:r:s:St")) !=
EOF)
>  #else
> -    while ((i = getopt(argc, argv, "6:c:b:Dfi:I:nop:P:r:s:t")) != EOF)
> +    while ((i = getopt(argc, argv, "4:6:b:c:Dfi:I:nop:P:r:s:t")) != EOF)
>  #endif /* HAVE_SSL */
>   switch (i) {
>   default:
>       Usage();
>       /* NOTREACHED */
> +        case '4':                       /* Bind to a certain IPv4
address. */
> +        case 'b':
> +            if (ListenAddr != NULL)
> +                die("-b and -4 may not both be given");

Perhaps, "-b and -4 are the same and both may not be given"?
This way, we're telling admins that they are the same thing.

> +            ListenAddr = xstrdup(optarg);
> +            break;
>          case '6':                       /* Bind to a certain IPv6
address. */
>              ListenAddr6 = xstrdup(optarg);
>              break;
> - case 'b': /* Bind to a certain IPv4 address. */
> -            ListenAddr = xstrdup(optarg);
> -     break;
>   case 'c':                       /* Use alternate readers.conf. */
>       ConfFile = concatpath(innconf->pathetc, optarg);
>       break;

Re: IPv6 changes vs. Documentation, and "nicety" of news.daily - was Re: [ANNOUNCE] INN 2.5.0 release candidate available
#81059
Author: Julien ÉLIE
Date: Mon, 18 May 2009 17:28
41 lines
2928 bytes
Hi D. Stussy,

> Have we accumulated enough changes to issue "rc3"?

Yes, we even have accumulated enough changes to issue the final
INN 2.5.0 release!
Normally in a few days.


> PS:  The ISC "developmental release" page still says "rc1".

Yes, and the link unfortunately does not work any longer...
"rc2" was not an official release with an announcement in
inn-announce...


>> The amusing part is that innd has "-I" but the code never worked (even
>> in INN 2.0!).  So I totally removed "-I" to only have "-4" for it.
>
> Looks like it was missing from the getopt string (before modification).

Exactly!


>> die("-b and -4 may not both be given");
>
> Perhaps, "-b and -4 are the same and both may not be given"?
> This way, we're telling admins that they are the same thing.

OK.  I will change the sentence.
I only put the information in in the man page:
    http://www.eyrie.org/~eagle/software/inn/docs/nnrpd.html

    -b address
        Similar to the -4 flag. -b is kept for backwards compatibility.

-- 
Julien ÉLIE

« Petite annnonce : Sourd rencontrerait sourde pour terrain d'entente. » 
Re: IPv6 changes vs. Documentation, and "nicety" of news.daily - was Re: [ANNOUNCE] INN 2.5.0 release candidate available
#81063
Author: D. Stussy
Date: Mon, 18 May 2009 21:14
20 lines
2024 bytes
"Julien ÉLIE" <iulius@nom-de-mon-site.com.invalid> wrote in message
news:gus5ra$kvg$1@news.trigofacile.com...
> > Have we accumulated enough changes to issue "rc3"?
>
> Yes, we even have accumulated enough changes to issue the final
> INN 2.5.0 release!
> Normally in a few days.

;-)

>     http://www.eyrie.org/~eagle/software/inn/docs/nnrpd.html
>
>     -b address
>         Similar to the -4 flag. -b is kept for backwards compatibility.

I would have used:  "Same as the -4 ...."   Close enough.



Page 2 of 2 • 64 total messages
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