Skip to content
Tcl Source Code Artifact [67239e47ef]
Login

Artifact [67239e47ef]

Artifact 67239e47ef860e3af5c3913dfabdf96483ca60df:

Ticket change [67239e47ef] - Ticket [219205ffffffffff|219205ffff] <i>missing file events on server socket under Windows</i> status still Open with 4 other changes by ashmael on 2001-03-21 04:35:58.
D 2001-03-21T04:35:58
J icomment Logged\sIn:\sYES\s\nuser_id=178287\n\nI've\srecently\sbeen\sinvestigating\sthis\sproblem\sagain\shoping\s\nto\sfind\sa\sfix\sfor\sthe\sproblem\sand\sin\sdoing\sso\shave\sfound\s\nthe\sfollowing\sinformation\sthat\smay\sbe\suseful:\n\n*\sIt\shappens\smost\soften\son\sWindows\s95/98.\s\sIt\sseems\sto\sbe\s\nmuch\smore\sdifficult\sto\sreproduce\son\sWindows\sNT,\saccording\s\nto\smy\scolleague\swith\san\sNT\smachine,\sbut\sI\scan\sreproduce\sit\s\nwith\sno\sproblem\son\s95/98.\n\n*\sIf\sthe\ssocket\sis\sclosed\sand\sreopened,\swith\sa\snew\sevent\s\nhandler\screated,\scommunication\sresumes\sfor\sa\stime\s(in\smy\s\ncase\sthis\sis\sUDP\sso\sthere's\sno\sconnection\sloss\sdoing\sso).\n\n*\sSimply\susing\sTcl_DeleteChannelHandler\sand\sthen\scalling\s\nTcl_CreateChannelHandler\sagain\sdoes\sNOT\scause\scommunication\s\nto\sresume.\n\n*\sAfter\san\sevent\sis\sdropped,\sthe\ssocket\sremains\sin\sthe\s\nreadable\sstate\s(as\sindicated\sby\sa\sselect()\scall\sdirectly\son\s\nthe\ssocket).\s\sIt\sseems\sas\slong\sas\sthe\ssocket\sremains\sin\s\nthis\sstate\sno\sfurther\s"readable"\sevents\swill\soccur.\sOnce\s\nthe\ssocket\sis\sread\sso\sthat\sit\sis\sno\slonger\sin\sthe\sreadable,\s\nhowever,\snew\sincoming\sdata\swill\susually\strigger\sthe\sevent\s\nhandler\sand\swill\scontinue\suntil\sthe\snext\stime\san\sevent\sis\s\ndropped.\n\n*\sThe\sbehavior\sseems\sto\sbe\saffected\sby\swhether\sor\snot\sthe\s\napplication\shas\sfocus.\s\sIn\smy\scase,\sI've\sgot\sa\ssmall\sDLL\s\nwritten\sspecifically\sto\sreproduce\sthe\sproblem.\s\sTwo\scopies\s\nof\swish\sare\srun,\sloading\sthe\sDLL\sin\seach,\sand\sone\sacts\sas\sa\s\nclient\sand\sthe\sother\sa\sserver\ssending\sUDP\spackets\sback\sand\s\nforth\sbetween\seach\sother\sas\sfast\sas\spossible.\s\sThe\sinstance\s\nacting\sas\sthe\sserver,\swhich\ssends\sa\spacket\sback\sonly\swhen\sa\s\npacket\sis\sreceived,\susually\sruns\snormally\sas\slong\sas\sit\shas\s\nthe\sfocus.\s\sBut\sas\ssoon\sas\sthe\sclient\sgets\sfocus\sthen\s\nevents\sstart\sgetting\sdropped\sleft\sand\sright\son\sWin\s95/98.\n\n*\sTcl\s8.0.5\sdoes\snot\sexhibit\sthe\sproblem\sbut\sall\sversions\s\nfrom\s8.2.1\sthrough\s8.4a2\sdo.\s\s8.1.x\s-\s8.2\smay\salso\sexhibit\s\nthe\sproblem\sbut\sas\sof\syet\sI\shaven't\sconfirmed\sdue\sto\sa\s\ncrashing\sproblem\swith\s8.1\sand\sthis\sDLL.\n
J login ashmael
J mimetype text/plain
J username ashmael
K 219205ffffffffffffffffffffffffffffffffff
U ashmael
Z bc6b7d4898080a6d6eaecd875dca5bd6