🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #79444

Re: Behaviour when STARTTLS fails

#79444
From: Julien ÉLIE
Date: Sat, 20 Sep 2008 21:48
33 lines
2368 bytes
Hi Russ,

>> STARTTLS
>> 382 Begin TLS negotiation now
>> LIST ACTIVE.TIMES
>> 500 What?
>> QUIT
>> 205 Bye!
>
> Well, if you actually get a mutually detected failure, I think there is
> synchronization for that and both sides know when it's failed.
> (Otherwise, it wouldn't be even theoretically possible to continue.)

The server normally synchronizes after \r\n so there will only be
one exchange which is not understood (the first one -> 500).
At one moment indeed, both sides will know STARTTLS failed.  Well, I hope :)


>> Can we just close the socket on failure?  I assume it is what RFC 4642
>> suggests because the server "SHOULD immediately close the connection".
>>
>> Is it OK not to send 400 just before?
>
> I believe you can just close the connection on failure without any status
> code.

It is the safest thing to do.  Let's close the connection then.

-- 
Julien ÉLIE

« La vie ne vaut rien. Mais rien ne vaut la vie. » (André Malraux) 
Technical Details
Message-ID: <gb3r4b$k3u$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!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!t-online.de!club-internet.fr!feedme-small.clubint.net!news.netfinity.fr!news.trigofacile.com!not-for-mail
References: <gb34f2$8rm$1@news.trigofacile.com> <87ej3ebjh3.fsf@windlord.stanford.edu>

Show Full Headers
Complete Article Headers
Message-ID: <gb3r4b$k3u$1@news.trigofacile.com>
Subject: Re: Behaviour when STARTTLS fails
Date: Sat, 20 Sep 2008 23:48:57 +0200
From: Julien ÉLIE <iulius@nom-de-mon-site.com.invalid>
References: <gb34f2$8rm$1@news.trigofacile.com> <87ej3ebjh3.fsf@windlord.stanford.edu>
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!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!t-online.de!club-internet.fr!feedme-small.clubint.net!news.netfinity.fr!news.trigofacile.com!not-for-mail
Newsgroups: news.software.nntp
Organization: TrigoFACILE -- http://www.trigofacile.com/
Lines: 33
NNTP-Posting-Host: aaubervilliers-151-1-94-38.w83-199.abo.wanadoo.fr
Mime-Version: 1.0
Content-Type: text/plain; format=flowed; charset="iso-8859-1";
 reply-type=original
Content-Transfer-Encoding: 8bit
X-Trace: news.trigofacile.com 1221947340 20606 83.199.213.38 (20 Sep 2008
X-Complaints-To: abuse@trigofacile.com
NNTP-Posting-Date: Sat, 20 Sep 2008 21:49:00 +0000 (UTC)
In-Reply-To: <87ej3ebjh3.fsf@windlord.stanford.edu>
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Windows Mail 6.0.6001.18000
X-MimeOLE: Produced By Microsoft MimeOLE V6.0.6001.18049