Skip to content
Tcl Source Code Artifact [6b26031e1b]
Login

Artifact [6b26031e1b]

Artifact 6b26031e1b8dca7b576f888f336730f73f105daf:

Ticket change [6b26031e1b] - Ticket [1437595fffffffff|1437595fff] <i>WinSock cores/hangs on thread or app exit</i> status still Open with 4 other changes by vasiljevic on 2006-03-19 00:40:31.
D 2006-03-19T00:40:31
J icomment Logged\sIn:\sYES\s\nuser_id=95086\n\nDamn.\s\n\nThe\smore\sI\sdig\sinto\sthat,\sthe\smore\sdirt\scomes\sout...\n\nMy\shumble\sconclusion\sis\sthat\sthe\sentire\sinit/teardown\sof\s\nTcl\sis\sa\spatchwork.\sIt\sis\snot\spossible\sto\schange\san\sA\swithout\ngetting\sthe\sZ\saffected\s:-(\n\nAs\sI\ssee,\sthe\ssocket\ssubsystem\sis\sdefined\sto\sbe\sloaded\slazy.\nMeans,\sfirst\sthing\sthat\spulls\sany\ssocket-related\sfunctionality\nbeing\sit\s[socket]\scommand\sor\sany\sexported\sC-API\scall\swill\neventually\sload\sand\sinitialize\sthe\sentire\ssubsystem.\nPer-se\sthis\sis\snot\sa\sbad\sidea\sas\sit\sconserves\sresources.\nBut\sit\screates\sproblems\sif\syou\sneed\sto\shave\sa\scall\slike\sTclpHasSockets.\n\nThis\sone\sis\sone\sof\sthe\scallers\sof\sInitSockets()\sso\sif\sInitSockets()\sblock\nthe\scaller\swill\sblock\sas\swell.\sIf\syou\sdivorce\sthose\stwo,\sthen\syou\sneed\sto\nexplicitly\sload\sthe\ssocket\ssubsystem,\swhich\sis\swhat\sI\swanted\sto\sdo.\nBut\sthen,\syou\send\sup\sin\sa\ssituation\sthat\syou\sneed\sto\sdo\sthis\sbefore\ndoing\s*anything*\selse\swith\sC-\sor\sTcl-API.\sUnfortunately\sthere\sis\sno\nsuch\shook\sin\sthe\sAPI.\s\n\nSo\sI\swill\shave\sto\sthink\slittle\sbit\smore.\s\n\nCurrent\ssituation\sis:\sTclpHasSockets()\swill\sblock\suntil\sInitSockets()\shas\ncreated\sthe\scomplete\senvironment\s*including*\sthe\shelper\ssocket\sthread\nand\sthe\sassociated\swindow.\sI\spersonally\sdo\snot\ssee\sany\sproblem\sin\nsuch\sbehaviour.\s\sYet,\sI\swill\stry\sanother\sattempt,\sbut\sthe\sfuture\sdoes\snot\nlook\sbright...\sunless\swe\sre-write\sthe\sentire\sper-thread\sinitialization\nstuff\swhich\sI\swould\snot\slike\sto\sdo\sat\sthis\stime.\n\n\n
J login vasiljevic
J mimetype text/plain
J username vasiljevic
K 1437595fffffffffffffffffffffffffffffffff
U vasiljevic
Z 6ff6a186dcffbcf75efb2ea1ba6079fb