.
D 2013-09-23T14:19:05.914
J assignee nobody
J closer nobody
J cmimetype text/x-fossil-wiki
J comment <h2>Platform</h2>\r\nWindows\s(Vista\s32\sbit)\r\n\r\n<h2>Issue</h2>\r\nIt\sis\stried\sto\sopen\san\sasync\scient\ssocket\sto\slocalhost.\r\nIf\slocalhsot\shas\san\sIPV6\sand\san\sIPV4\saddress,\sonly\sIPV6\sis\stried.\r\nIf\sa\sservice\sservices\sonly\sIPV4\ssockets,\sthe\sconnect\sstalls.\r\n\r\n<h2>Symptom</h2>\r\nTest\s"socket-14.0"\sfails\r\n\r\n<h2>Remark</h2>\r\nIssue\sdoes\snot\sfail\sif\ssocket\sis\snot\sasync.\r\n\r\n<h2>Demo\s1</h2>\r\nThe\sclient\ssocket\sname\sdoes\snot\sget\sthe\sIPV6\saddress\sin\sasync\smode.\r\nIn\sconsequence,\sthe\sconnect\sfails\r\n\r\n<verbatim>\r\n1\s%\sproc\saccept\s{s\sa\sp}\s{\r\n\s\s\s\s\sputs\s$s\sbye\r\n\s\s\s\s\sclose\s$s\r\n\s\s\s\s\sputs\sok\r\n}\r\n2\s%\sset\sserver\s[socket\s-server\saccept\s-myaddr\s127.0.0.1\s0]\r\nsock272\r\n3\s%\sset\sport\s[lindex\s[fconfigure\s$server\s-sockname]\s2]\r\n61680\r\n4\s%\sset\sclient\s[socket\s-async\slocalhost\s$port]\r\nsock492\r\n5\s%\sfconfigure\s$client\s-sockname\r\n::\s::\s61681\r\n6\s%\sfconfigure\s$client\s-error\r\nconnection\srefused\r\n</verbatim>\r\n\r\n<h2>Demo\s2</h2>\r\nIt\sworks\swith\ssyncroneous\ssockets.\r\nTwo\swish\sprograms\sare\sopened:\r\n\r\n<h3>wish1:\sserver</h3>\r\n\r\n<verbatim>\r\n1\s%\sproc\saccept\s{s\sa\sp}\s{\r\n\s\s\s\s\sputs\s$s\sbye\r\n\s\s\s\s\sclose\s$s\r\n\s\s\s\s\sputs\sok\r\n}\r\n2\s%\sset\sserver\s[socket\s-server\saccept\s-myaddr\s127.0.0.1\s61680]\r\nsock272\r\nok\r\n</verbatim>\r\nThe\stext\s'ok'\sis\sshown,\swhen\sthe\slower\scommands\sare\sentered.\r\n\r\n<h3>wish2:\sclient</h3>\r\n\r\n<verbatim>\r\n1\s%\sset\sclient\s[socket\slocalhost\s61680]\r\nsock468\r\n5\s%\sfconfigure\s$client\s-sockname\r\n127.0.0.1\ssteinmeister\s61720\r\n6\s%\sfconfigure\s$client\s-error\r\n</verbatim>
J foundin 8.6.1
J is_private 0
J login oehhar
J priority 5\sMedium
J private_contact 0f366eb3e9e2fcab52b8ebacd197db9047186a5f
J resolution None
J severity Minor
J status Open
J submitter oehhar
J subsystem 25.\sChannel\sSystem
J title IPV6\sonly\sused\sfor\sIPV4/IPV6\ssockets\son\swindows
J type Bug
K 13d3af3ad5b8e8eb20d673962d442dd64a40af40
U oehhar
Z d7fd3dd9ce8e5335a9580c0bfdef6750