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

Artifact [3d6606841a]

Artifact 3d6606841a8643a95f3f57c77dc17e2f499c8f41:

Ticket change [3d6606841a] - New ticket [218667ffffffffff|218667ffff] <i>socket -async combined with fileevent does not work under NT</i>. by nobody on 2000-10-26 01:03:54.
D 2000-10-26T01:03:54
J assignee nobody
J cmimetype text/plain
J comment OriginalBugID:\s1664\sBug\nVersion:\s8.0.5\nSubmitDate:\s'1999-03-30'\nLastModified:\s'1999-04-13'\nSeverity:\sSER\nStatus:\sReleased\nSubmitter:\spat\nChangedBy:\sredman\nRelatedBugIDs:\s1776\nOS:\sWindows\sNT\nOSVersion:\s4.0\sSP3\nMachine:\sX86\nFixedDate:\s'1999-04-13'\nFixedInVersion:\s8.0.5\nClosedDate:\s'2000-10-25'\n\n\nName:\nmo\n\nReproducibleScript:\n\s\s\s\sset\sserver\sftp.netscape.com\n\s\s\s\sset\sport\s\s\s12345\n\s\s\s\s\n\s\s\s\sif\s{[catch\s{\n\s\s\s\s\s\sset\ssock\s[socket\s-async\s$server\s$port]\n\s\s\s\s}\serr]}\s{\n\s\s\s\s\s\sputs\s"socket\s-async\sconnect\serror\s1\s\\"$err\\""\n\s\s\s\s}\n\s\s\s\s\n\s\s\s\s#\sdefine\sfileevent\scallback\n\s\s\s\s\n\s\s\s\sproc\sfirstWritable\s{\ssock\s}\s{\n\s\s\s\s\s\s#\sremove\swritable\sfileevent\shandler\n\s\s\s\s\s\sfileevent\s$sock\swritable\s{}\n\s\s\s\s\s\s\n\s\s\s\s\s\s#find\sout\sif\sthe\sconnection\sworked\sby\stesting\sthe\s-peername\n\s\s\s\s\n\s\s\s\s\s\sif\s[catch\s{fconfigure\s$sock\s-peername}\speerinfo]\s{\n\s\s\s\s\s\s\s\sclose\s$sock\n\s\s\s\s\s\s\s\sputs\s"socket\s-async\sconnect\serror\s2\s\\"$peerinfo\\""\n\s\s\s\s\s\s}\selse\s{\n\s\s\s\s\s\s\s\sputs\s"socket\s-async\sconnect\sworked"\n\s\s\s\s\s\s}\n\s\s\s\s}\n\s\s\s\s\n\s\s\s\s#\sset\sup\sfile\sevent\son\sthe\ssocket\sso\swe\sknow\n\s\s\s\s#\swhen\sit\sconnects\s(or\sfails\sto\sconnect)\n\s\s\s\s\n\s\s\s\sfileevent\s$sock\swritable\s"firstWritable\s$sock"\n\s\s\s\s\n\s\s\s\s\n\n\n\nObservedBehavior:\n\s\s\s\sThe\swritable\sfileevent\scallback\sis\snever\striggered\sunder\sNT.\n\s\s\s\sThis\ssame\scode\sworks\sperfectly\sunder\sUnix\ssystems.\n\s\s\s\s\n\n\n\nDesiredBehavior:\n\s\s\s\sI\sneed\sto\sbe\sable\sto\stest\sto\ssee\sif\sthe\sasync\ssocket\n\s\s\s\sconnect\sworked\susing\sthe\swritable\sfileevent.\sThere\sis\n\s\s\s\ssimply\sno\sother\sway\sto\scheck\sthe\sstatus\sof\sthe\ssocket\n\s\s\s\swithout\sdoing\sa\sread\son\sthe\ssocket\sand\sdoing\sa\sread\n\s\s\s\son\sthe\ssocket\sis\snot\san\soption\sbecause\sthe\sprogram\n\s\s\s\scan\snot\sblock\sTk\sevents\sduring\sa\snetwork\soperation.\n\s\s\s\s\n\n\n\n\n\n\s\s\s\sI\salso\stested\sthis\sunder\sTcl\s8.1b2\sand\sit\sdoes\snot\ssolve\n\s\s\s\sthis\sproblem\seither.\n\s\s\s\s\n04/13/1999\s10:25\s-\sredman\s-\sMo\ssubmitted\sa\sbetter\spatch\sin\sBug\s1776.
J foundin final:\s8.0.5
J priority 5\sMedium
J resolution None
J status Open
J submitter nobody
J subsystem 63.\s(unused)
J title socket\s-async\scombined\swith\sfileevent\sdoes\snot\swork\sunder\sNT
J type Bug
K 218667ffffffffffffffffffffffffffffffffff
U nobody
Z a4a29f1b9c6e9f0a53259ab689def6be