Skip to content
Tcl Source Code Artifact [a04e61cc89]
Login

Artifact [a04e61cc89]

Artifact a04e61cc89967ecccee219a10d1a8f8d01ecf348:

Ticket change [a04e61cc89] - New ticket [218356ffffffffff|218356ffff] <i>Failed socket open prevents future attempts.</i>. by nobody on 2000-10-26 00:56:38.
D 2000-10-26T00:56:38
J assignee nobody
J cmimetype text/plain
J comment OriginalBugID:\s4136\sBug\nVersion:\s8.2.3\nSubmitDate:\s'2000-02-07'\nLastModified:\s'2000-02-07'\nSeverity:\sMED\nStatus:\sClosed\nSubmitter:\stechsupp\nChangedBy:\shobbs\nOS:\sWindows\sNT\nOSVersion:\sWindows\sNT\sService\sPack\s6a\nMachine:\sVarious\sIntel\sPC\sclass\smachines\nFixedDate:\s'2000-10-25'\nClosedDate:\s'2000-02-07'\n\n\nName:\nDwaine\sGonyier\n\nExtensions:\nBinary\stcl\s8.2.3\sdistribution\sfor\sWin32\sfrom\sscriptics.com\n\nReproducibleScript:\nproc\sopensock\s{addr}\s{\n\s\sglobal\ssfp\n\s\swhile\s[catch\s{set\ssfp\s[socket\s$addr\s19]}\serr]\s{\n\s\s\s\sputs\s"Trying\sto\sopen\ssocket\sat\s[clock\sformat\s[clock\sseconds]]"\n\s\s\s\sputs\s"Error\sis\s$err"\n\s\s}\n}\n\nObservedBehavior:\nThis\scode\sis\spart\sof\sa\sscript\sto\sbe\sused\sin\sa\stest\senvironment\nwhere\sIP\sconnections\scan\sbe\slost\sdue\sto\sremote\sstations\sleaving\nthe\snetwork,\setc.\s\s\sThis\sproc\sis\sto\sbe\scalled\swhen\sthe\sexisting\nconnection\sis\slost,\sthe\sidea\sbeing\sthat\sthe\sloop\swill\sretry\sforever\nuntil\sthe\sconnection\sis\sreestablished.\sWhat\sI\shave\sfound\son\sWinNT\nis\sthat\swhen\sthe\sconnection\sis\slost\sand\sthis\sproc\sis\scalled,\sthere\nis\sa\sdelay\sfor\sthe\sfirst\spass\sthrough\sthis\sloop\sbecause\sthe\ssocket\nis\sactually\strying\sto\sopen.\sWhen\sit\stimes\sout\sbecause\sthe\s\nremote\shost\sis\snot\savailable,\sthe\sloop\sstart\sexecuting\sreally\nfast\swith\sno\sdelay\sas\sthough\sthe\ssocket\scall\sis\sgiving\sup\sright\naway,\seven\sif\sthe\sremote\shost\shas\ssince\sbecome\savailable\sand\ncan\sbe\sPINGed\sfrom\sanother\scommand\sprompt\son\sthe\ssame\sstation\nexecuting\sthis\sscript.\n\nI\shave\sused\sthis\ssame\scode\swith\stcl\s8.2.3\ncompiled\son\sAIX\s4.3.3\swithout\sany\sproblems--the\sloop\sexecutes\swith\na\sdelay\sfor\seach\spass\sas\seach\ssocket\sattempt\stimes\sout\sand\sonce\nthe\sremote\sstation\sbecomes\savailable,\sthe\sconnection\sis\ssuccessfully\nopened.\n\nUnder\sWinNt,\sI\shave\sadded\san\safter\sxxxx\sstatement\sto\sthe\sloop\sto\s\nsee\sif\sit\sis\ssome\stype\sof\sspin\scondition,\sbut\sit\sdidn't\shelp.\n\nBTW,\sthis\sproblem\scan\sbe\ssimulated\sby\strying\sto\sconnect\sto\sa\shost\sIP\nthat\sdoesn't\sexist.\n\nDesiredBehavior:\nUnder\swin32,\sthe\ssocket\scommand\sshould\sactually\stry\sto\sconnect\neach\stime\sand\snot\salways\simmediately\s"give\sup"\safter\sthe\sfirst\ntime\sa\sconnection\sattempt\sfails.\n\n\n\nThe\suser\sdidn't\sput\s{}s\saround\sthe\swhile\scondition,\smaking\sit\nessentially\sa\sconstant\sof\s1.\s\n--\s02/07/2000\shobbs
J foundin final:\s8.2.3
J priority 5\sMedium
J resolution None
J status Open
J submitter nobody
J subsystem 69.\sOther
J title Failed\ssocket\sopen\sprevents\sfuture\sattempts.
J type Bug
K 218356ffffffffffffffffffffffffffffffffff
U nobody
Z 5771c6cbaba63155c948dfc0bf7ddfd3