Skip to content
Tcl Source Code Artifact [78064f32a7]
Login

Artifact [78064f32a7]

Artifact 78064f32a70ea748b6ce61099be4652f97e5a7d3:

Ticket change [78064f32a7] - Ticket [3325339fffffffff|3325339fff] <i>socket-14.2 fails</i> status still Open with 4 other changes by rmax on 2011-06-28 14:44:07.
D 2011-06-28T14:44:07
J icomment Ah\s-\sI\sthink\sI\sgot\sit.\sMy\scode\swas\salready\sreposting\sthe\sevent,\sbecause\sOpenBSD\salso\sremoves\sthe\swritable\sstate\sfrom\sthe\ssocket\swhen\sreading\sand\sclearing\sthe\serror,\sbut\sthe\scheck\sfor\swhether\sthis\sreposting\sis\sneeded\sat\sthe\sbottom\sof\sCreateClientSocket()\swas\sflawed.\sIt\sonly\schecked\sfor\sstatus\sbeing\ssmaller\sthan\szero,\sbut\sgetsockopt\sreturns\sthe\serror\svalue\sas\sa\spositive\sinteger.\nSo,\schanging\sthe\s"if\s(status\s<\s0)\s{"\sto\s"if\s(status\s!=\s0)\s{"\sin\sthe\slast\sblock\sof\sCreateClientSocket()\sshould\sdo\sthe\strick.\nAfter\sthat\schange,\sstrace\sshows\sthat\sno\ssecond\sselect\sis\shappening\sanymore.\n\nBTW,\sis\sit\sreally\sneeded\sto\swatch\sthe\ssocket\sfor\sexceptions\shere?\sI\sdid\sit,\sbecause\sthe\sinternal\sevent\shandler\sfor\sserver\ssocket\scallbacks\sdo\sso,\sbut\sin\smy\stests\sI've\snever\sseen\sa\ssocket\sto\sfire\san\sexception.\sGiven\sthat\sit\sis\snot\seven\spossible\sto\sset\sup\san\sexception\shandler\sfrom\sscript\slevel,\smy\sguess\swould\sbe\sthat\sit\sis\snot\sneeded.\n
J login rmax
J mimetype text/plain
J username rmax
K 3325339fffffffffffffffffffffffffffffffff
U rmax
Z 5193134887bf51543edd0e6399592bcb