Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 3f5ee6d698d6503d49510a2315e9127e9ce65a7a
Ticket: 13d3af3ad5b8e8eb20d673962d442dd64a40af40
IPV6 only used for IPV4/IPV6 sockets on windows
User & Date: oehhar on 2013-11-10 17:24:58
Changes

  1. icomment:
    I tried today [5d478dc916], the last checkin before this patch was submitted.
    I did not build a wish, only tclsh, so I ran multiple tclsh.exe, with the commands:
    <verbatim>
    % proc accept {s a p} {
         puts $s bye
         close $s
         puts ok
    }
    % set server [socket -server accept -myaddr 127.0.0.1 61680]
    sock192
    % vwait a
    </verbatim>
    
    and in a second console
    <verbatim>
    % set client [socket -async localhost 61680]
    sock448
    % fconfigure $client -sockname
    :: :: 51254
    % fconfigure $client -error
    connection refused
    </verbatim>
    There is no "ok" shown in the first console.
    
    In a thiered console, use a syncroneous socket:
    <verbatim>
    set client [socket localhost 61680]
    </verbatim>
    This takes a while, and the "ok" is shown in the first console window.
    
    IMHO, this version also shows the bug.
    Sorry,
    Harald
    
  2. login: "oehhar"
  3. mimetype: "text/x-fossil-wiki"
  4. username: "oehhar"