<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">On Sun, Feb 12, 2017 at 8:05 AM, Kim Holviala <span dir="ltr"><<a href="mailto:kim@holviala.com" target="_blank">kim@holviala.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div id="gmail-:s1" class="gmail-a3s gmail-aXjCH gmail-m15a3312552bedcc3">C: opens TCP connection to server<br>
C: STARTTLS<br>
S: WTF OMG OMG IT'S ALIVE!!!!<br>
C: bzzzzz trrr trrr trrr <TLS connection with proper selector request here><br>
S: Happily serving the request<br></div></blockquote></div><br>What about:</div><div class="gmail_extra"><br></div><div class="gmail_extra">(Server that supports TLS):</div><div class="gmail_extra"><br></div><div class="gmail_extra">C: opens TCP connection to server<br>C: STARTTLS<br>S: 3Resource not found\terror.host\t0\r\n</div><div class="gmail_extra">S: closes connection</div><div class="gmail_extra"><br></div><div class="gmail_extra">client repeat request without attempting TLS<br></div><div class="gmail_extra"><br></div><div class="gmail_extra">(Server that does not support TLS):</div><div class="gmail_extra"><br></div><div class="gmail_extra">C: opens TCP connection to server<br>C: STARTTLS<br>S: starts TLS handshake<br>C: starts TLS handshake</div><div class="gmail_extra">C<->S: TLS session initiated</div><div class="gmail_extra">C: sends selector request</div><div class="gmail_extra">S: serves up resource</div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature"><span style="border-collapse:collapse;color:rgb(136,136,136);font-size:13px"><br><font face="arial, sans-serif">James Mills / prologic</font><br><br><font face="arial, sans-serif"></font><font face="'courier new', monospace">E: <a href="mailto:prologic@shortcircuit.net.au" style="color:rgb(0,0,204)" target="_blank">prologic@shortcircuit.net.au</a></font></span><div><span style="font-family:"courier new",monospace;color:rgb(136,136,136);font-size:13px">W: </span><a href="http://prologic.shortcircuit.net.au" style="font-family:"courier new",monospace;font-size:13px;color:rgb(0,0,204)" target="_blank">prologic.shortcircuit.net.au</a><br></div></div></div>
</div></div>