Skip to content
Tcl Source Code Artifact [a192677ef0]
Login

Artifact [a192677ef0]

Artifact a192677ef092fec91b066dee184a8696dae8daec:

Ticket change [a192677ef0] - Ticket [1028264fffffffff|1028264fff] <i>socket: failed write prevents read</i> status still Open with 4 other changes by ferrieux on 2008-11-17 06:49:20.
D 2008-11-17T06:49:20
J icomment OK,\shere\sis\sa\sfirst\sreport\son\smy\sanalysis.\n\nThe\sproblem\sis\sthat\sSocketExitHandler\sis\sregistered\samong\sthe\sprocess-wide\shandlers,\swhich\sare\scalled\searly\sin\sTcl_Finalize,\swhile\sthe\scloseProc\sis\scalled\sin\sFinalizeIOSubsystem\swhich\sis\spart\sof\sthe\slater\sper-thread\scleanup.\nNow\swhat's\speculiar\sis\sthat\sFinalizeIOSubsystem\salso\scalls\s"TclpFinalizeSockets"\swhich\sis\sthe\schanneldriver-guts\spart\sof\sthe\scleanup\sin\sSocketExitHandler...\n\nI'm\snot\ssure\s(euphemism)\sI\sunderstand\sthis\sstate\sof\saffairs\s(especially\sthe\sredundant\scall\sof\sTclpFinalizeSockets\son\sthe\smain\sthread),\showever\shere\sis\show\sI'd\sfix\sit:\n\n\s\s\s-\sremove\sentirely\sthe\sprocess-wide\shandler\sconcerning\ssockets\n\s\s\s-\sinstead\senrich\sTclpFinalizeSockets\swith\sa\sclient-counting\sscheme\skeeping\strack\sof\show\smany\sthreads\s"with\ssocket\sinterest"\sremain\n\s\s\s-\swhen\sthis\scount\sdrops\sto\szero,\sdo\sthe\srest\sof\swhat\sis\scurrently\sin\sSocketExitHandler:\sUnregisterClass\sand\sWSACleanup.\n\nDoes\sthis\sfeel\scorrect\s?\nAny\shint\sof\sa\sdefinition\sof\s"with\ssocket\sinterest"\s?\n\n-Alex\n\n\n
J login ferrieux
J mimetype text/plain
J username ferrieux
K 1028264fffffffffffffffffffffffffffffffff
U ferrieux
Z 2d7f003191f270a2c111a56490ecd00d