Skip to content
Tcl Source Code Artifact [a193f760df]
Login

Artifact [a193f760df]

Artifact a193f760df4b3b899920d529d313a2f33aac8dd0:

Ticket change [a193f760df] - Ticket [3394732fffffffff|3394732fff] <i>socket -server</i> status still Open with 4 other changes by rmax on 2011-08-20 22:34:34.
D 2011-08-20T22:34:34
J icomment Ah\s-\sI\srecently\sremoved\sthe\scheck\sfor\sserver\ssockets\sfrom\sTcpWatchProc()\safter\sI\sdidn't\sfind\sa\sway\sfor\sit\sto\sever\sget\scalled\sfor\sserver\ssockets.\sBut\sas\sa\sresult\sof\s[chan\sconfigure\s-encoding]\sit\sdoes\sget\scalled\sand\sremoves\sthe\sFileHandler\sfor\sthe\sfirst\sfile\sdescriptor\sin\sthe\ssocket.\sIt\sis\sonly\sthe\sfirst,\sbecause\sconnected\ssockets\sfor\swhich\sTcpWatchProc()\sis\snormally\scalled,\sonly\sever\shave\sone\sfd\sand\sso\sit\sdoesn't\sneed\sto\sloop\sover\sthem.\n\nI\scould\sre-add\sthe\scheck\sto\sskip\sserver\ssockets,\sbut\ssuggest\sto\sfurther\sinvestigate\sif\schanging\sthe\sencoding\sreally\sneeds\sto\scall\sthe\swatchproc.\sAlso,\sit\smight\sbe\scleaner\sto\snot\sspecify\sa\swatchproc\sin\sthe\sTcl_ChannelType\sstruct\sfor\sserver\ssockets\sat\sall,\sso\sthat\sTcpWatchProc()\sdoesn't\sneed\sto\scheck\sfor\sthem.\sThis\swould\smean\sthat\sseparate\sTcl_ChannelType\sstructs\swould\shave\sto\sbe\smaintained\sfor\sclient\sand\sserver\ssockets,\swhich\smight\snot\sbe\sso\sbad,\sbecause\sthere\sare\smore\smembers\sin\sthe\sstruct\sthat\sdon't\smake\smuch\ssense\sfor\sserver\ssocckets.\n\nIn\sany\scase,\swe\sshould\sadd\sa\stest\scase\sfor\sthis,\sso\sthat\sit\scan't\sre-appear.\n\nAs\sa\squick\sfix\sthe\sfollowing\sline\scan\sbe\sadded\sat\sthe\sstart\sof\sTcpWatchProc():\nif\s(statePtr->acceptProc\s!=\sNULL)\sreturn;\n\n
J login rmax
J mimetype text/plain
J username rmax
K 3394732fffffffffffffffffffffffffffffffff
U rmax
Z 5748295bcd51d387aa8796a958dab7b6