Overview
| Artifact ID: | bc3ec61b378d7a8007e56e77f572698eda167c0c |
|---|---|
| Ticket: | 3545363fffffffffffffffffffffffffffffffff
socket/vwait hang in io-53.10 and socket.test |
| User & Date: | twylite on 2012-07-18 21:14:57 |
Changes
- icomment:
By all means :) To avoid giving a stupid answer, I have done the following: 1. Reboot (to make sure nothing is misbehaving) 2. Turned Windows Firewall off in Control Panel (for Domain, Private and Public networks) 3. Stopped the Windows Firewall service. socket.test and chan-io-53.10 still hang. 4. Start Windows Firewall service. 5. Enable firewall in Control Panel chanio.test requests firewall access for the tclsh86t.exe process (granted). socket.test and chan-io-53.10 still hang. Now the making-progress bit: (1) The socket.test hang is IPv6 related. (2) I forgot to mention that various http and http11 tests seem to hang as well (exact tests not investigated, I just started skipping the files). (2) The test suite has a bunch of socket -server stuff that _doesn't_ hang ... and all of it uses -myaddr ... except chan-io-53.10, socket.test latency calc, and some http stuff. Test script: -- set port 0 set addr {} ;# {} or {-myaddr 127.0.0.1} or {-myaddr 10.11.12.79} set s [socket -server [list apply {{s a p} { puts "Accepted client connection '$s' (a='$a', p='$p')" set ::clisock $s puts $s "hello"; flush $s }}] {*}$addr $port] puts "Opened server socket '[fconfigure $s -sockname]'" vwait ::clisock -- Results (manually collated): -- FAIL: addr = {} ; telnet localhost $port = connect, hang PASS: addr = {} ; telnet localhost ($port + 1) = connecting ... failed PASS: addr = {} ; telnet 127.0.0.1 $port = ok PASS: addr = {} ; telnet 10.11.12.79 $port = ok PASS: addr = {-myaddr 127.0.0.1} ; telnet localhost $port = ok PASS: addr = {-myaddr 127.0.0.1} ; telnet localhost ($port + 1) = connecting ... failed PASS: addr = {-myaddr 127.0.0.1} ; telnet 127.0.0.1 $port = ok PASS: addr = {-myaddr 127.0.0.1} ; telnet 10.11.12.79 $port = connecting ... failed PASS: addr = {-myaddr 10.11.12.79} ; telnet localhost $port = connecting ... failed PASS: addr = {-myaddr 10.11.12.79} ; telnet localhost ($port + 1) = connecting ... failed PASS: addr = {-myaddr 10.11.12.79} ; telnet 127.0.0.1 $port = connecting ... failed PASS: addr = {-myaddr 10.11.12.79} ; telnet 10.11.12.79 $port = ok ping localhost Pinging dbn-trevord-i5... [::1] with 32 bytes of data: Reply from ::1: time<1ms -- The connect in socket.test uses localhost rather than 127.0.0.1 -- changing that allows socket.test to run (there are some failure, I will investigate further). The chan-io-53.10 doesn't use -myaddr but the connect goes to 127.0.0.1 -- according to my test script that works, so we may be looking at two independent issues here. Please advise on whether the IPv6 localhost address is expected to work or not? - login: "twylite"
- mimetype: "text/plain"
- username: "twylite"