<i>WinSock cores/hangs on thread or app exit</i> status still Open with 4 other changes
by
.
D 2006-03-15T05:25:25
J icomment Logged\sIn:\sYES\s\nuser_id=95086\n\nThis\sdoes\snot\ssound\svery\sdeterministic\sto\sme.\sI\swould\snever\ntrust\ssuch\sa\ssystem.\sWhy\s20\ssecs?\sWhy\snot\s10\sor\s100\sor\s1000?\n\nI\sdo\snot\sbelieve\sthis\sis\sthe\sright\sway\sto\sgo.\n\nI\sguess\sif\sthe\sthread\sneeds\sthat\slong\stime\s(20\ssecs\sin\sthat\scase\sis\nalmost\sforever)\sto\sstart\sup,\sthen\ssomething\sis\swrong\swith\sthe\s\ncomputer\sand\sthere\s\sis\sno\sreason\sto\scontinue.\nIf\sa\sthread\sA\swants/needs\sto\sstart\sthe\sthread\sB\sthen\sit\smust\nwait\sforever\sif\sneeded.\sBecause\sif\sit\sreally\swaits\sforever\s\nthen\syou\shave\ssome\sother\sproblem.\sI\ssee\sit\sthis\sway:\nsomebody\swants\sto\suse\ssocket\scommunication.\sFor\sthat\sWindows\nneeds\sa\shelper\sthread:\sIf\sthis\sthread\sis\snot\sstarted\sthen\swe\sneed\nto\sTcl_Panic!\sSee\sthe\sexample\sof\sthe\snotifier\sfhread.\sIf\sthis\sthread\ndoes\snot\sstart,\swould\syou\salso\swait\s20\ssecs\sand\sdeclare\sthreading\ncommunication\suseless\sor\swould\syou\spanic\sthe\ssystem?\sFortunately\nthe\swise\sdesigner\sof\sthat\spart\sdecided\sto\sTcl_Panic\swhich\sis\sthe\nonly\scorrect\sway\sto\sgo.\s\nWhy\srelaxing\sthat\sbehaviour\sfor\ssockets?\n\nPlease\sunderstand:\sthe\ssimplest\sthing\sfor\sme\sis\sto\sgo\sand\sput\sthat\ntimeout\sback\sthere.\sBut\sI'm\sstill\snot\sconvinced\sthat\swould\sbe\sthe\nright\ssolution.\n\n\n
J login vasiljevic
J mimetype text/plain
J username vasiljevic
K 1437595fffffffffffffffffffffffffffffffff
U vasiljevic
Z 6dfdb4e5ae4afa423de1feedcd0325e4