Skip to content
Tcl Source Code Artifact [19d188e7b8]
Login

Artifact [19d188e7b8]

Artifact 19d188e7b83dc98c964d24d4f06f7f476743bc40:

Ticket change [19d188e7b8] - New ticket [219333ffffffffff|219333ffff] <i>TCP ChannelHandler stops working sometimes</i>. by nobody on 2000-10-26 05:10:53.
D 2000-10-26T05:10:53
J assignee nobody
J cmimetype text/plain
J comment OriginalBugID:\s4825\sBug\nVersion:\s8.2.1\nSubmitDate:\s'2000-04-03'\nLastModified:\s'2000-10-25'\nSeverity:\sCRIT\nStatus:\sUnAssn\nSubmitter:\stechsupp\nOS:\sWindows\sNT\nOSVersion:\sNT\s4.0\ssp4\nMachine:\sPII\s350,\s128mb\sRAM\nFixedDate:\s'2000-10-25'\nClosedDate:\s'2000-10-25'\n\n\nName:\nBob\sBawn\n\nExtensions:\nb;t24,\sitcl3.1.0\s(w/\sitk,\siwidgets)\n\nComments:\nI\sjust\stried\sif\swith\s8.3.0\sand\sobserved\sthe\ssame\sbehavior.\sI\stried\n\s\s\s\sbumping\sup\sthe\ssockets\sSNDBUF\son\sthe\sserver\sside\s-\sno\schange.\sI\stried\n\s\s\s\shacking\sthe\stcl\swin\ssource\sto\sload\sWS2_32.DLL\sinstead\sof\sWINSOCK.DLL\s-\n\s\s\s\sno\schange(I\shave\ssince\sbeen\stold\sthat\sthat\sshouldn't\smatter...)\n\nReproducibleScript:\nHere's\sthe\schunk\sof\sC\scode\sthat\screates\sthe\shandler\sfrom\sa\ssocket\sdescriptor:\n\n//\sMake\sand\sregister\sa\sTcl\sChannel\saround\sthe\ssocket\sso\sthat\swe\scan\n//\suse\sTcl_CreateChannelHandler\sto\sregister\sour\smessage\shandler\s\n//\scallback\sin\sa\splatform-independent\sfashion\s\nm_papiChannel\s=\sTcl_MakeTcpClientChannel((ClientData)\ssd);\nTcl_RegisterChannel(m_interp,\sm_papiChannel);\n\n//\sHandle\sasync\sreply\swith\sPapiAsyncHandler(),\suse\sobject\sid\n//\sfor\sclient\sdata\sso\swe\sknow\swhich\sinstance\sthe\n//\sreply\sis\sfor\s\nTcl_CreateChannelHandler(m_papiChannel,\sTCL_READABLE\s|\sTCL_EXCEPTION,\s\nPapiAsyncHandler,\s(void\s*)\sGetId());\n\nObservedBehavior:\nIn\smy\sapp,\sthe\sTcl\sclient\s(on\sNT)\sreceives\sfrequents\s(~30\sper\ssecond)\sasynchronous\smessages\sover\sthe\ssocket\sin\squestion\sfrom\sa\sC\sprogram\son\sa\sFreeBSD\sserver.\sNormally,\severything\sis\sfine,\sbut\swhen\sthe\sclient\sbox\shas\sa\sbig\snetwork\sload\s(e.g.\s2\sftp\stransfers)\smy\sapp\sbehaves\sas\sif\sthe\ssocket\sis\snever\sbecoming\sreadable.\sThe\sserver's\swrite()\seventually\sfails\swith\san\sEAGAIN,\spresumably\sbecause\sits\ssend\sbuffer\sfilled\sup.\sThe\sserver\sthen\scloses\sthe\ssocket\s-\smy\schannel\shandler\sis\sstill\snot\scalled\s(even\sthough\sit\swould\sbe\swhen\sthe\ssocket\swas\sclosed\sunder\snormal\sconditions).\sI\sdon't\sknow\smuch\sabout\swin32\sbut\smy\ssuspicion\sis\sthat\sthere\sis\ssome\ssort\sof\sdeadlock/timing\stype\sof\sproblem.\sIt\sseems\ssimilar\sto\sbug\s#3409.\n\nDesiredBehavior:\n-\sChannelHandler\salways\sgets\scalled\swhen\ssocket\sbecomes\sreadable\n-\sserver\sclose()\salways\sinvokes\sthe\sChannelHandler\n\n\n\n
J foundin obsolete:\s8.2.1
J priority 5\sMedium
J resolution None
J status Open
J submitter nobody
J subsystem 69.\sOther
J title TCP\sChannelHandler\sstops\sworking\ssometimes
J type Bug
K 219333ffffffffffffffffffffffffffffffffff
U nobody
Z ed47c00e138c862c55d94175c0262db4