Skip to content
Tcl Source Code Artifact [5f1a923707]
Login

Artifact [5f1a923707]

Artifact 5f1a923707f3de38a111a1b5b38640541fc49f4a:

Ticket change [5f1a923707] - Ticket [3325339fffffffff|3325339fff] <i>socket-14.2 fails</i> status still Open with 4 other changes by ferrieux on 2011-06-28 05:23:10.
D 2011-06-28T05:23:10
J icomment After\sa\sbit\sof\sexplanations\son\sthe\schat,\sI\sagree\sthat\sthis\smay\sbe\suseful\sfor\sthe\sIPv6\stransition,\sas\smore\sand\smore\sservers\swill\sget\sDNS\srecords\sfor\sboth\stheir\sv4\sand\sv6\saddress.\n\nNow\sI\shave\sfound\sthe\scritical\sOS\sbehavior\sthat\smakes\sthe\sbug\sappear\sor\sdisappear:\sthough\sa\sfirst\sselect(writable)\s\sdoes\send\sup\scalling\sTcpAsyncCallback\s(when\sthe\soutcome\sof\sthe\sasynchronous\sconnection\sis\sknown),\sat\sthis\sspot\sthe\scode\scalls\sgetsockopt(SOL_SOCKET,\sSO_ERROR).\sOn\ssome\sOSes,\slike\sFedora\s12,\sit\sturns\sout\sthat\sthis\shas\sa\sside-effect:\sthe\sOS\sno\slonger\sthings\sthe\ssocket\sis\swritable\swhen\sthe\soutcome\sis\s"connection\serror".\sThis\scan\sbe\sseen\svery\sclearly\sthrough\sstrace:\sthe\ssecond\sselect()\sdoesn't\swake\sup\son\sthe\swritable\sbit\swhen\sthe\sgetsockopt\sis\spresent,\sand\sdoes\swhen\sit\sis\snot.\n\nBy\sremoving\sthe\sresort\sto\sthe\scached\sgetsockopt\s(->status\sfield),\severything\sworks.\nReinhard,\scan\syou\sexplain\swhy\syou\sadded\sit\s?\n\n
J login ferrieux
J mimetype text/plain
J username ferrieux
K 3325339fffffffffffffffffffffffffffffffff
U ferrieux
Z 140f586bc8ba012d6a1ee9d9436fdc61