|
2026-10-18
| ||
| 20:26 | • Closed ticket [59e7e7fdfb]: socket -async throws when the connect fails at once ... artifact: d8fe43ba8a user: jan.nijtmans | |
|
2020-11-17
| ||
| 09:07 | • Closed ticket [42d50ebd0c]: Unix test results on socket -async depend on timing ... artifact: 2b3923566e user: oehhar | |
|
2015-05-29
| ||
| 12:57 | • Closed ticket [13d3af3ad5]: IPV6 only used for IPV4/IPV6 sockets on windows ... artifact: fac7bcfab4 user: oehhar | |
| 12:52 | • New ticket [42d50ebd0c] Unix test results on socket -async depend on timing and ... artifact: 4a04e7c778 user: oehhar | |
Unix test results on socket -async depend on timing and network configuration
'socket -async' tests all IPs available for a certain host until one succeeds. This list might be quite long if IPV6 is used. The test (failure) may take minuits if internet is involved until microseconds on the localhost.
In the scope of this, it is difficult to test the internal functioning of 'socket -async' and the interaction with other commands gets/read/puts/fconfigure/close/eof.
In addition, the tcl channel system is demanded in a high level, as "E_WOULDBLOCK" is returned internally while the connection is in progress. This may result in a pile of buffered writes and buffered errors, which should show up later.
So the issue of this ticket is:
- failing tests with some configurations on unix: socket-14.2, socket-14.7.0, socket-14.7.2, socket-14.8.2,socket-14.11.0, socket-14.11.1, socket-14.12, socket-14.14, socket-14.15, socket_inet-2.13, http-4.14. Details are in the comments of bug [13d3af3ad]
- unix and macos only. Windows takes around one second to fail a localhost connect, enough time for all tests to pass.
Solutions are:
- Control the processing by a test command. Implemented in this branch: [robust-async-connect-tests]
See also: http://wiki.tcl.tk/39687
d8fe43ba8aClosed ticket [59e7e7fdfb]: socket -async throws when the connect fails at once (illumos) plus 8 other changes ticket2026-10-18 20:26:48fac7bcfab4Closed ticket [13d3af3ad5]: IPV6 only used for IPV4/IPV6 sockets on windows plus 7 other changes ticket2015-05-29 12:57:14
[robust-async-connect-tests] merged to trink by checkin [9f162eb401].