Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 923c8348f1e6d45874e0ae82e43445ea26f9b5ca
Ticket: 13d3af3ad5b8e8eb20d673962d442dd64a40af40
IPV6 only used for IPV4/IPV6 sockets on windows
User & Date: dkf on 2013-11-10 20:47:11
Changes

  1. icomment:
    I've just tried with 8.6.1 (ActiveState build for OSX). With that, I get:
    <verbatim>
    % set client [socket -async localhost 61680]
    sock10100b710
    % update
    </verbatim>
    <i>“ok” printed by server here, but that's in another console</i>
    <verbatim>
    % fconfigure $client -sockname
    127.0.0.1 localhost 64134
    % fconfigure $client -error
    connection refused
    </verbatim>
    It would seem that asynchronous processing requires the event loop! Who knew...
    <p>
    The real issue with this sequence is the bogus error message.
    <p>
    <b>But that's not all!</b> This sequence is different:
    <verbatim>
    % set client [socket -async localhost 61680]
    sock103825910
    % fconfigure $client -error
    connection refused
    % update
    % fconfigure $client -error
    % fconfigure $client -error
    % fconfigure $client -sockname
    ::1 localhost 64153
    </verbatim>
    At no point in the above sequence does the server notice the connection being made. Which is to say that fetching the error on a channel prevents the protocol renegotiation thereafter. That's a critical problem!
    
  2. login: "dkf"
  3. mimetype: "text/html"
  4. username: "dkf"