Skip to content
Tcl Source Code Artifact [d388298490]
Login

Artifact [d388298490]

Artifact d388298490e9b5c701fc556097ffe90a351a1923:

Ticket change [d388298490] - 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-16 16:19:48.
D 2006-03-16T16:19:48
J icomment Logged\sIn:\sYES\s\nuser_id=95086\n\nHere\sis\show\sI\swould\ssolve\sthat:\n\nI\swould\sintroduce\snew\splatform-specific\scall:\sTclpInitializeSockets().\nThis\sshould\sbe\ssymetric\sto\sTclpFinalizeSockets()\sand\sshould\sbe\scalled\nfrom\swithin\sTclInitSubsystems()\sin\sthe\sgeneric\slayer.\nThis\scall\swould\sdo\sexactly\sthe\ssame\swhat\sthe\sInitSockets()\swas\sdoing\sin\s\ntclWinSock.c.\sActually,\sI'd\sjust\srename\sInitSockets()\s->\sTclpInitializeSockets()\nand\sget\sit\scalled\sfrom\sthe\sgeneric\spart\sexplictly.\s\n\nOTOH,\sthe\sTclpHasSockets()\swill\sjust\sexamine\swinsock.hModule\s!=\sNULL\nhence\sit\sis\snon-block.\sIt\swill\snot\sattempt\sto\slazy-load\sthe\sentire\ssocket\nsubsystem\sas\sit\sis\snow.\sSo\sone\smore\slock-source\sless,\swhich\sis\sa\snice\nside-effect.\n\nThis\sway\sthe\sentire\ssocket\ssubsystem\sis\scalled\s*once*\sper\sthread\screation.\nIf\sany\scall\sto\sit\sbreaks\sat\ssome\splace\sAFTER\s(initially\s)\sloading\sthe\ssocket\sDLL\s\nthen\swe\spunt\s(Tcl_Panic).\n\nWhat\sdo\syou\sthink?\n\n
J login vasiljevic
J mimetype text/plain
J username vasiljevic
K 1437595fffffffffffffffffffffffffffffffff
U vasiljevic
Z 55488adef61aca54ee11f10c1c627fe9