.
D 2011-06-28T15:40:06
J icomment Yes,\sI\salso\sfigured\sthat\smore\scomments\sare\sneeded\sand\shad\salready\swritten\sthe\sfollowing\stwo\swhen\syour\spost\sarrived:\nabove\sgetsockopt():\n\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s*\sRead\sthe\serror\sstate\sfrom\sthe\ssocket\sto\ssee\sif\sthe\sasync\n\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s*\sconnection\shas\ssucceeded\sor\sfailed.\sAs\sthis\sclears\sthe\n\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s*\serror\scondition,\swe\scache\sthe\sstatus\sin\sthe\ssocket\sstate\n\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s*\sstruct\sfor\slater\sretrieval\sby\s[fconfigure\s-error].\n...\sand\sabove\sTcl_NotifyChannel():\n\s\s\s\s\s\s\s\s\s\s\s\s\s*\sIf\san\sasynchronous\sconnection\shas\sfinally\sfailed,\swe\sneed\sto\n\s\s\s\s\s\s\s\s\s\s\s\s\s*\srepost\sthe\swritable\sevent\shere,\sbecause\sat\sleast\ssome\sOSes\n\s\s\s\s\s\s\s\s\s\s\s\s\s*\sclear\sthe\swritable\sstate\sfrom\sthe\ssocket\swhen\sthe\serror\sis\n\s\s\s\s\s\s\s\s\s\s\s\s\s*\sread,\sand\sso\sa\ssubsequent\sselect()\son\sbehalf\sof\sa\sscript\slevel\n\s\s\s\s\s\s\s\s\s\s\s\s\s*\s[fileevent]\swill\snot\sfire.\nI\sthink\sI'll\sappend\sthe\ssecond\shalf\sof\syour\ssecond\scomment.\n\nI\shave\sno\sproof\sthat\sthe\slatest\sassertion\sholds,\sbut\sI\sam\spretty\sconfident\sit\sdoes,\sas\sI\ssee\sno\sreason\swhy\ssocket\sshould\sstop\sbeing\swritable\safter\sa\sconnection\shas\sbeen\sestablished\sand\sbefore\sany\sdata\shas\sbeen\swritten\sto\sit.\sBut\sof\scourse\sit\sshouldn't\shurt\sto\scall\sTcl_NotifyChannel()\sregardless\sof\sthe\sstatus,\sas\sit'll\sjust\ssave\sthe\score\sanother\sround\sthrough\sselect()\sin\sthe\ssuccessful\scase.\n
J login rmax
J mimetype text/plain
J username rmax
K 3325339fffffffffffffffffffffffffffffffff
U rmax
Z e907f541839be16e8da6e9598cd0ad00