Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: c99ec5921aaa441803d1abf093ff753890808589
Ticket: 13d3af3ad5b8e8eb20d673962d442dd64a40af40
IPV6 only used for IPV4/IPV6 sockets on windows
User & Date: dgp on 2014-06-26 15:58:35
Changes

  1. icomment:
    Note that merging the trunk before widespread testing
    would be a good idea.  Also I noted my displeasure with
    this implementation on the chat:
    
    
    dgp	At a minimum, if magical configurations cannot be avoided, we need to find some way to not let them leak out into the public interface.  That would likely take the form of a testing socket command in Tcltest.
    oehhar	I see no other way to test what we want to test, sorry. For example: "set h [socket -async $h $p];fconfigure $h -blocking 0; puts $h A; flush $h" and then it should fail, was not possible without this because it sometimes failed in the "setup".
    oehhar	That is ok. Reinhard has proposed the same thing which I like. I first want to know if this effectively makes the tests pass. Then we know what we do and can do it better. Reinhard has proposed to only include the command in a special test build.
    oehhar	If you have any suggestions how to do it, they are welcomed. Unfortunately, I don't have the knowledge for that and I did what I could.
    oehhar	But first I want to know if it passes on Mac...
    
    oehhar	Testing socket command would be best for me. But how may a flag be set in the driver ?
    oehhar	So "tcltest sockettest 1" sets the flag in the driver. But how to implement that ?
    dgp	if it comes to that, we'd either extend [testchannel] or invent [testsocket] in generic/tclTest.c to gain access to whatever internal knobs are needed to reliably test what needs testing.
    dgp	But augmenting every socket with a new [chan configure .... -unsupported] option is a No Go.
    
  2. login: "dgp"
  3. mimetype: "text/plain"