πŸš€ go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #79443

Re: Behaviour when STARTTLS fails

#79443
From: Russ Allbery
Date: Sat, 20 Sep 2008 21:22
30 lines
2116 bytes
Julien Γ‰LIE <iulius@nom-de-mon-site.com.invalid> writes:

> Therefore, I wonder what is the right way to do that.  If the connection
> is not closed, the first command will never be understood because there
> is no synchronization between the client and the server.  For intance:
>
> 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.)

> 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.

-- 
Russ Allbery (rra@stanford.edu)             <http://www.eyrie.org/~eagle/>

          Please post questions rather than mailing me directly.
     <http://www.eyrie.org/~eagle/faqs/questions.html> explains why.
Technical Details
Message-ID: <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.ams.giganews.com!nntp.giganews.com!feeder.news-service.com!newshub.sdsu.edu!headwall.stanford.edu!news.stanford.edu!not-for-mail
References: <gb34f2$8rm$1@news.trigofacile.com>

Show Full Headers
Complete Article Headers
Message-ID: <87ej3ebjh3.fsf@windlord.stanford.edu>
Subject: Re: Behaviour when STARTTLS fails
Date: Sat, 20 Sep 2008 14:22:48 -0700
From: Russ Allbery <rra@stanford.edu>
References: <gb34f2$8rm$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.ams.giganews.com!nntp.giganews.com!feeder.news-service.com!newshub.sdsu.edu!headwall.stanford.edu!news.stanford.edu!not-for-mail
Newsgroups: news.software.nntp
Organization: The Eyrie
Lines: 30
NNTP-Posting-Host: windlord.stanford.edu
Mime-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit
X-Trace: news.stanford.edu 1221945768 13454 171.64.19.147 (20 Sep 2008
X-Complaints-To: news@news.stanford.edu
User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.2 (gnu/linux)
Cancel-Lock: sha1:TTU069KlTn86edd3YFQcxIgind8=