Artifact
72bee9a94674fc65592c02939544823a631075be:
Ticket change
[72bee9a946]
- New ticket
[217813ffffffffff|217813ffff] <i>Windows only: Sockets may stay open on OS level after 'close</i>.
by
nobody on
2000-10-26 00:44:04.
D 2000-10-26T00:44:04
J assignee nobody
J cmimetype text/plain
J comment OriginalBugID:\s1353\sBug\nVersion:\s8.0.4\nSubmitDate:\s'1999-03-02'\nLastModified:\s'1999-03-02'\nSeverity:\sSER\nStatus:\sClosed\nSubmitter:\spat\nChangedBy:\spat\nOS:\sWindows\sNT\nOSVersion:\s4.0\nMachine:\sX86\nFixedDate:\s'2000-10-25'\nClosedDate:\s'1999-03-02'\n\n\nName:\nThomaS\n\nReproducibleScript:\n#Observe\sTCP\sconnection\swith\snetstat\sin\sa\sDOS-Box.\sOpen\sconnections\shave\sstate\s#ESTABLISHED.\s\n#\n#\sAssuming\sa\ssocket\sserver\sis\srunning\son\shost\svmsaxp\sand\sport\s7412.\sThe\slocal\n#\shost\sis\snamed\sartemis.\s\n#\n#\s1)\sbehaves\sfine\nset\ssock\s[socket\svmsaxp\s7412];\n#\sTCP\sconnection\s\sartemis:2519\shas\sstate\sESTABLISHED.\nclose\s$sock;\n#\sTCP\sconnection\s\sartemis:2519\shas\sstate\sTIME_WAIT\sor\sdisappeared\sfrom\n#\snetstat\slist.\n#\n#\s2)\smisbehaves.\nset\ssock\s[socket\svmsaxp\s7412];\n#\sTCP\sconnection\s\sartemis:2519\shas\sstate\sESTABLISHED.\nexec\swish80\s&\nclose\s$sock;\n#\sTCP\sconnection\s\sartemis:2519\sstill\shas\sthe\sstate\sESTABLISHED.\n#\sthe\sconnection\swill\sbe\sclosed\swhen\sthe\sexternal\sprocess\sends.\n\nObservedBehavior:\nThe\sTCP\sconnection\sfrom\sthe\sclient\sto\sthe\sserver\sstays\sopen,\sespecially\sthe\sserver\sdoesn't\sreceive\san\sEOF.\sThe\sopen\ssocket\scannot\sbe\scontacted\sfrom\stcl,\sneither\sfrom\sthe\sparent\sshell\snor\sfrom\sthe\sspawned\schild\sshell.\n\nDesiredBehavior:\nAfter\sthe\sclose\sstatement\sthe\sconnection\sshould\sbe\sclosed.\s\n\nPatch:\nSomehow\sthe\sspawn\sprocess\sinherits\sthe\sopen\sfile\sdescriptors\sof\sits\sparent.\sI\sthink\sa\sflag\ssupressing\sthis\sbehaviour\smust\sbe\sset\swhen\scalling\sCreateProcess()\sin\stclWinPipe.c.\n\n\n\n03/02/1999\s16:47\s-\spat\s-\sduplicate\sof\sbug\s1250
J foundin obsolete:\s8.0.4
J priority 5\sMedium
J resolution None
J status Open
J submitter nobody
J subsystem 69.\sOther
J title Windows\sonly:\sSockets\smay\sstay\sopen\son\sOS\slevel\safter\s'close
J type Bug
K 217813ffffffffffffffffffffffffffffffffff
U nobody
Z e0fdfb11863ac13ff5849eba1273b77c