🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #76163

Re: SSL support in INN 2.5

#76163
From: Julien ÉLIE
Date: Wed, 06 Jun 2007 16:22
73 lines
5899 bytes
En réponse à Julien ÉLIE :
> I wonder what happened to the line (is the part after the «  .  » really sent
> by Thunderbird?  maybe it is an artefact from my writing the buffer p).

Well, since my last post was in the same case, here are new logs:

### Normal posting until:

Jun  6 18:09:27 news nnrpd[9842]:  lui est-il arriv    ### Thunderbird hangs (one minute).  ### A dialog box appears, telling me the article could not be posted.  I click « OK ».    Jun  6 17:43:33 news nnrpd[8251]: é ? Un choc moral ?    -- Oui, avec un menhir. » (Astérix)  .   arrivivJulien ÉLIE    « -- Que lui est-il arrivivivÉLIE    « -- Que lui est-il arriv  --   Julien ÉLIE    « -- Que lui est-il arriv lui est-il arrivE    « -- Que lui est-il arrivue lui est-il arriv       --   Julien ÉLIE    « -- Que lui est-il arriv

### Hang during a minute, and then the end of my message arrives:

Jun  6 18:10:28 news nnrpd[9842]: in          --   Julien ÉLIE    « -- Que lui est-il arrivulien ÉLIE    « -- Que lui est-il arrivulien ÉLIE    « -- Que lui est-il arrivulien ÉLIE    « -- Que lui est-il arriv  Jun  6 17:43:33 news nnrpd[8251]: 240 Article posted <f46kl8$81r$1@news.trigofacile.com>  Jun  6 17:43:33 news nnrpd[8251]: .  Jun  6 17:43:33 news nnrpd[8251]: 205 .    ### And, obviously, the article was correctly posted.        Well, I do not know how to interpret the last four lines...    The first is obtained thanks to line.c:      static ssize_t  line_doread(void *p, size_t len)  {      ssize_t n;        do {  #ifdef HAVE_SSL      if (tls_conn) {          int err;          do {          n =
Jun  6 18:10:28 news nnrpd[9842]:  SSL_read(tls_conn, p, len);  +       syslog(L_ERROR, "%s", p);      I wonder what happened to the line (is the part after the «  .  » really sent  by Thunderbird?  maybe it is an artefact from my writing the buffer p).    And I do not know why « . » in the third line.  And also why the  answer « 205 . » to such a command.    If you have any idea regarding that problem (a INN one or a Thunderbird one?  why does it occur?), it would be great.    Regards,    --   Julien ÉLIE    « -- Que lui est-il arrivé ? Un choc moral ?    -- Oui, avec un menhir. » (Astérix)  .  kl8$81r$1@news.trigofacile.com>  Jun  6 17:43:33 news nnrpd[8251]: .  Jun  6 17:43:33 news nnrpd[8251]: 205 .    ### And, obviously, the article was correctly posted.        Well, I do not know how to interpret the last four lines...    The first is obtained thanks to line.c:      static ssize_t  line_doread(void *p, size_t len)  {      ssize_t n;        do {  #ifdef HAVE_SSL      if

(tls_conn) {          int err;          do {          n =

### I am still not sure whether the end of the previous line is an artefact (after «  .  »).

Jun  6 18:10:28 news nnrpd[9842]: 240 Article posted <f46m7n$9ji$1@news.trigofacile.com>
Jun  6 18:10:28 news nnrpd[9842]: .
Jun  6 18:10:28 news nnrpd[9842]: 205 .


Still that strange « . » answer.


By the way, couldn't that issue be related to « line.c »:

**  This code implements a infinitely (well size_t) long single line
**  read routine, to protect against eating all available memory it
**  actually starts discarding characters if you try to send more than
**  the maximum article size in a single line.


I also wish to recall that no problem occurs with:

+ #ifdef HAVE_SSL
        /* wait for activity on stdin, updating timer stats as we
         * go */
+         if (tls_conn == NULL) {
+ #endif
            do {
                struct timeval t;

                FD_ZERO(&rmask);
                FD_SET(STDIN_FILENO, &rmask);
                t.tv_sec = timeout;
                t.tv_usec = 0;
                /*TMRstart(TMR_IDLE);*/
                i = select(STDIN_FILENO + 1, &rmask, NULL, NULL, &t);
                /*TMRstop(TMR_IDLE);*/
                if (i == -1 && errno != EINTR) {
                    syslog(LOG_WARNING, "%s can't select", ClientHost);
                    return RTtimeout;
                }
            } while (i == -1);

            /* if stdin didn't select, we must have timed out */
            if (i == 0 || !FD_ISSET(STDIN_FILENO, &rmask))
                return RTtimeout;
+ #ifdef HAVE_SSL
+         }
+ #endif



I hope someone will understand what is happening.

-- 
Julien ÉLIE

« Savoir c'est pouvoir. » (Francis Bacon)
Technical Details
Message-ID: <f46n0g$a7c$1@news.trigofacile.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.20141118.mbox.gz!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!t-online.de!tiscali!newsfeed1.ip.tiscali.net!feeder1-2.proxad.net!proxad.net!feeder1-1.proxad.net!club-internet.fr!feedme-small.clubint.net!news.ecp.fr!news.trigofacile.com!not-for-mail
References: <f0g32k$83v$1@guepard.ecp.fr> <f1dptn05nb@news5.newsguy.com> <f1fdge$62j$1@news.trigofacile.com> <f1gdt902mqc@news2.newsguy.com> <f1igj3$5nu$1@news.trigofacile.com> <f3und8$1e9$1@news.trigofacile.com> <f46j3l$vmt$4@news.trigofacile.com> <f46m7n$9ji$1@news.trigofacile.com>

Show Full Headers
Complete Article Headers
Message-ID: <f46n0g$a7c$1@news.trigofacile.com>
Subject: Re: SSL support in INN 2.5
Date: Wed, 06 Jun 2007 18:22:39 +0200
From: Julien ÉLIE <iulius@nom-de-mon-site.com.invalid>
References: <f0g32k$83v$1@guepard.ecp.fr> <f1dptn05nb@news5.newsguy.com> <f1fdge$62j$1@news.trigofacile.com> <f1gdt902mqc@news2.newsguy.com> <f1igj3$5nu$1@news.trigofacile.com> <f3und8$1e9$1@news.trigofacile.com> <f46j3l$vmt$4@news.trigofacile.com> <f46m7n$9ji$1@news.trigofacile.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.20141118.mbox.gz!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!t-online.de!tiscali!newsfeed1.ip.tiscali.net!feeder1-2.proxad.net!proxad.net!feeder1-1.proxad.net!club-internet.fr!feedme-small.clubint.net!news.ecp.fr!news.trigofacile.com!not-for-mail
Newsgroups: news.software.nntp
Organization: Gens Iulia -- http://www.trigofacile.com/
Lines: 73
NNTP-Posting-Host: goret.via.ecp.fr
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-15
Content-Transfer-Encoding: 8bit
X-Trace: news.trigofacile.com 1181147020 10476 138.195.145.22 (6 Jun 2007
X-Complaints-To: abuse@trigofacile.com
NNTP-Posting-Date: Wed, 6 Jun 2007 16:23:40 +0000 (UTC)
User-Agent: Thunderbird 2.0.0.0 (Windows/20070326)
In-Reply-To: <f46m7n$9ji$1@news.trigofacile.com>