.
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