Skip to content
Tcl Source Code Artifact [3bc7d45154]
Login

Artifact [3bc7d45154]

Artifact 3bc7d4515414f85a6e47f298da98c7c3e68119af:

Ticket change [3bc7d45154] - New ticket [218409ffffffffff|218409ffff] <i>TR#2178 apparently STILL not fixed in Tcl 8.3. Server never </i>. by nobody on 2000-10-26 00:57:14.
D 2000-10-26T00:57:14
J assignee nobody
J cmimetype text/plain
J comment OriginalBugID:\s5370\sBug\nVersion:\s8.3\nSubmitDate:\s'2000-05-05'\nLastModified:\s'2000-05-18'\nSeverity:\sCRIT\nStatus:\sClosed\nSubmitter:\stechsupp\nChangedBy:\shobbs\nOS:\sWindows\sNT\nOSVersion:\sNT\s4.0,\sSP\s5\nMachine:\sGateway\sE5200\s(Dual\sPII)\nFixedDate:\s'2000-10-25'\nClosedDate:\s'2000-05-18'\n\n\nName:\nPete\sTinker\n\nExtensions:\nNONE\n\nCustomShell:\nNONE.\s\sUsing\sthe\sWindows\sNT\sbinaries\sonly.\n\nComments:\nThis\swas\sthe\sresponse\sto\smy\searlier\sposting\sof\sthis\sproblem,\safter\swhich\n\s\s\s\sthe\sbug\swas\sreported\sas\s"closed."\s\sI\smust\shave\smis-communicated\n\s\s\s\ssomething.\s\sThe\sproblem\sis\s*NOT*\swith\sreading\sand\swriting\sthe\ssockets.\n\s\s\s\sThe\sproblem\sis\sthat\sthe\saccept\scallback\sis\snever\sinvoked\sby\sincoming\n\s\s\s\sclient\srequests.\s\sUsing\sfileevent\shas\sno\srelevance\shere.\s\sNote\sthat\smy\n\s\s\s\sexamples\sdo\snot\seven\stry\sto\sread\sor\swrite\sthe\ssockets\s--\sthey\sjust\stry\n\s\s\s\sto\sconnect/accept,\sand\sthis\sis\swhat\sdoes\snot\swork.\n\n\s\s\s\sComments\n\n\s\s\s\s\s\s\s\s\s\s\s\sComments\son:\sTR#2178\sapparently\snot\sfixed\sin\sTcl\s8.3.\sServer\n\s\s\s\snever\saccepts\sincoming\sconnects.\n\n\s\s\s\s\s\s\s\s\s\s\s\sNoted\sin\snewsgroup:\n\n\s\s\s\s\s\s\s\s\s\s\s\sYou\saren't\ssetting\sany\sfileevents\sin\sthe\saccept.\n\s\s\s\s\s\s\s\s\s\s\s\sThat\sisn't\sthe\sreadable\sand\swriteable\sproc\slumped\sinto\sone.\n\s\s\s\s\s\s\s\s\s\s\s\s--\n\s\s\s\s\s\s\s\s\s\s\s\s*\sDavid\sGravereaux\s*\s\n\s\s\s\s\s\s\s\s\s\s\s\s--\s04/24/2000\shobbs\n\n\s\s\s\s\s\s\s\s\s\s\s\s--\sJeffrey\sHobbs\son\sMay\s05,\s2000\s03:45\sAM\n\nReproducibleScript:\nSCRIPT\s1:\n\nset\sGUIsockR\s-1\nset\sGUIsockW\s-1\n\nproc\sGUIAccept\s"sock\saddr\sport"\s{\n\s\s\s\sglobal\sGUIsockR\sGUIsockW\n\n\s\s\s\sputs\s"in\saccept"\n\s\s\s\sfconfigure\s$sock\s-buffering\sline\n\s\s\s\sif\s{$GUIsockR\s==\s-1}\s{\nset\sGUIsockR\s$sock\n\s\s\s\s}\selse\s{\nset\sGUIsockW\s$sock\n\s\s\s\s}\n}\n\nproc\sconnectToWTK\s""\s{\n\s\s\s\sglobal\sGUIsockR\sGUIsockW\n\n\s\s\s\sset\sserver\s[socket\s-server\sGUIAccept\s5559]\n\s\s\s\svwait\sGUIsockR\n}\n\nconnectToWTK\nputs\sdone\n\nSCRIPT\s2:\n\nset\sGUIsockR\s-1\nset\sGUIsockW\s-1\n\nset\si\s5559\nwhile\s1\s{\n\s\s\s\sif\s{[catch\s{set\sGUIsockR\s[socket\slocalhost\si]}\serror]}\s{\nputs\s"can't\sopen\ssocket\sfor\sreading:\s\s$error"\nincr\si\nafter\s500\n\s\s\s\s}\selse\s{\nbreak;\n\s\s\s\s}\n}\n\nputs\s"connected\sR"\n\nfconfigure\s$GUIsockR\s-buffering\sline\n\nafter\s2000\n\nwhile\s1\s{\n\s\s\s\sif\s{[catch\s{set\sGUIsockW\s[socket\slocalhost\s$i]}\serror]}\s{\nputs\s"can't\sopen\ssocket\sfor\swriting:\s\s$error"\nafter\s500\n\s\s\s\s}\selse\s{\nbreak;\n\s\s\s\s}\n}\nfconfigure\s$GUIsockW\s-buffering\sline\n\nputs\s"connected\sW"\n\nINSTRUCTIONS:\nRun\sthe\sscripts\susing\stwo\sinstances\sof\stclsh\s83\s(make\ssure\sthey\sboth\suse\sthe\ssame\sport\snumbers,\sand\srun\sthem\son\sthe\ssame\smachine).\s\sThere\swill\sbe\sno\soutput\sfrom\sGUIAccept.\s\sThe\sproblem\sis\snot\swith\sthe\sconfiguration\sof\sGUIsockR\sand\sGUIsockW\s--\sthe\saccept\scallback\sis\ssimply\snever\sinvoked.\s\sI've\stried\sto\sset\sa\sfileevent\son\sthe\sserver\ssocket\sitself,\sbut\sTCL\srejects\sthat,\ssaying\sit\sis\sneither\sreadable\snor\swritable.\n\nThis\sworks\sjust\sfine\sif\sI\sgo\sback\sto\sTcl8.1.1.\s\s\sTR#2178\sclaimed\sit\swas\sbroken,\sthen\sfixed\sagain\sin\slater\sreleases,\sbut\sthis\sdoes\snot\sseem\sto\sbe\sthe\scase\sfor\sme.\n\nObservedBehavior:\nBoth\sscripts\shang,\swith\sno\soutput.\n\nDesiredBehavior:\nI\sexpect\sat\sleast\sto\ssee\sthat\sGUIAccept\sis\scalled.\s\sI\sshould\salso\ssee\sthat\sboth\sGUISockR\sand\sGUISockW\sare\sinstantiated,\swith\smessages\sto\sthat\seffect.\n\n\n\nUsing\s8.3.1\sI\sfind\sthat\sthese\swork\sas\sexpected.\s\sThere\sis\sno\nproblem\swith\ssocket\sconnection\sor\scommunication.\s\n--\s05/18/2000\shobbs
J foundin obsolete:\s8.3
J priority 5\sMedium
J resolution None
J status Open
J submitter nobody
J subsystem 63.\s(unused)
J title TR#2178\sapparently\sSTILL\snot\sfixed\sin\sTcl\s8.3.\sServer\snever\s
J type Bug
K 218409ffffffffffffffffffffffffffffffffff
U nobody
Z 64b95542bca85a5023b6b8b7153f176c