Skip to content
Tcl Source Code History Of Ticket 65533ec089b4d315
Login

History Of Ticket 65533ec089b4d315

Artifacts Associated With Ticket 65533ec089b4d315

  1. Ticket change [815074603a] (rid 138388) by anonymous on 2014-06-07 02:38:16:

    1. assignee initialized to: "nobody"
    2. closer initialized to: "nobody"
    3. cmimetype initialized to: "text/plain"
    4. comment initialized to:
      I noticed that the test socket_$af-2.11 in socket.test sometimes fails. The failure seems to be due to a race condition in the test itself.
      The bug was introduced in commit 63da2a6cf068dfcd2906ebc7278bb7618f8a0eb3
      (https://github.com/tcltk/tcl/commit/63da2a6cf068dfcd2906ebc7278bb7618f8a0eb3).
      
      In this test, some text is written to a TCP socket, then this text is read, then another read attempt is made (which should return nothing), then more text is written, which is then read. To be sure that the written text is actually available for the read attempt, line 574 and 581 of socket.test ("after 500") before this commit caused Tcl to wait for 500 milliseconds. After the commit, this line was replaced by
      
      after idle {set x 1}
      vwait x
      
      to make a pass through the event loop. However, this does not guarantee that the text written to the socket can actually be read. Hence, sometimes the first read returns nothing, and the test fails.
      Until somebody comes up with a better way to speed up this test, I think we should revert to 500 millisecond delay to avoid having test failures.
      
    5. foundin initialized to: "8.6.1"
    6. is_private initialized to: "0"
    7. login: "anonymous"
    8. priority initialized to: "5 Medium"
    9. private_contact initialized to: "500c9a7a4e11b3ea0441850610e04006941c0cf3"
    10. resolution initialized to: "None"
    11. severity initialized to: "Minor"
    12. status initialized to: "Open"
    13. submitter initialized to: "anonymous"
    14. subsystem initialized to: "34. tcltest Package"
    15. title initialized to:
      bug in socket.test socket_$af-2.11 {detecting new data}
      
    16. type initialized to: "Patch"
  2. Ticket change [2bac346f47] (rid 138525) by jan.nijtmans on 2014-06-23 13:58:29:

    1. assignee changed to: "max"
    2. icomment:
      The commit mentioned in the description is the GIT uuid for this commit. The corresponding fossil uuid is: [ebe9d97179b2fda01a0fc1709df8fc6e8eb2fb90]. Therefore assigning to Reinhard Max.
      
    3. login: "jan.nijtmans"
    4. mimetype: "text/x-fossil-wiki"
  3. Ticket change [48641548da] (rid 140051) by anonymous on 2014-09-27 01:33:30:

    1. icomment:
      I ran some more tests.
      With the test script as is, the test fails sometimes.
      After replacing "after idle {set x 1}" by "after $latency {set x 1}", I did not get any test failure (I ran the test 50,000 times).
      
    2. login: "anonymous"
    3. mimetype: "text/plain"