Overview
| Artifact ID: | 815074603a8f8468ef4b93ab50a18e63055b97f9 |
|---|---|
| Ticket: | 65533ec089b4d315a773d638d816673e311b3f03
bug in socket.test socket_$af-2.11 {detecting new data} |
| User & Date: | anonymous on 2014-06-07 02:38:16 |
Changes
- assignee changed to: "nobody"
- closer changed to: "nobody"
- cmimetype changed to: "text/plain"
- comment changed 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. - foundin changed to: "8.6.1"
- is_private changed to: "0"
- login: "anonymous"
- priority changed to: "5 Medium"
- private_contact changed to: "500c9a7a4e11b3ea0441850610e04006941c0cf3"
- resolution changed to: "None"
- severity changed to: "Minor"
- status changed to: "Open"
- submitter changed to: "anonymous"
- subsystem changed to: "34. tcltest Package"
- title changed to:
bug in socket.test socket_$af-2.11 {detecting new data} - type changed to: "Patch"