Artifacts Associated With Ticket 218667
Ticket change [3d6606841a] (rid 121080) by nobody on 2000-10-26 01:03:54:
- assignee initialized to: "nobody"
- cmimetype initialized to: "text/plain"
- comment initialized to:
OriginalBugID: 1664 Bug Version: 8.0.5 SubmitDate: '1999-03-30' LastModified: '1999-04-13' Severity: SER Status: Released Submitter: pat ChangedBy: redman RelatedBugIDs: 1776 OS: Windows NT OSVersion: 4.0 SP3 Machine: X86 FixedDate: '1999-04-13' FixedInVersion: 8.0.5 ClosedDate: '2000-10-25' Name: mo ReproducibleScript: set server ftp.netscape.com set port 12345 if {[catch { set sock [socket -async $server $port] } err]} { puts "socket -async connect error 1 \"$err\"" } # define fileevent callback proc firstWritable { sock } { # remove writable fileevent handler fileevent $sock writable {} #find out if the connection worked by testing the -peername if [catch {fconfigure $sock -peername} peerinfo] { close $sock puts "socket -async connect error 2 \"$peerinfo\"" } else { puts "socket -async connect worked" } } # set up file event on the socket so we know # when it connects (or fails to connect) fileevent $sock writable "firstWritable $sock" ObservedBehavior: The writable fileevent callback is never triggered under NT. This same code works perfectly under Unix systems. DesiredBehavior: I need to be able to test to see if the async socket connect worked using the writable fileevent. There is simply no other way to check the status of the socket without doing a read on the socket and doing a read on the socket is not an option because the program can not block Tk events during a network operation. I also tested this under Tcl 8.1b2 and it does not solve this problem either. 04/13/1999 10:25 - redman - Mo submitted a better patch in Bug 1776. - foundin initialized to: "final: 8.0.5"
- priority initialized to: "5 Medium"
- resolution initialized to: "None"
- status initialized to: "Open"
- submitter initialized to: "nobody"
- subsystem initialized to: "63. (unused)"
- title initialized to:
socket -async combined with fileevent does not work under NT
- type initialized to: "Bug"
Ticket change [43255ec3cf] (rid 116495) by welch on 2000-10-26 08:26:11:
- closedate changed to: "2000-10-26T01:26:11"
- closer changed to: "welch"
- priority changed to: "2"
- resolution changed to: "Fixed"
- status changed to: "Closed"
Ticket change [2ff3cbaa2e] (rid 93158) by dgp on 2001-04-01 01:47:45:
- subsystem changed to: "27. Channel Types"
Ticket change [963af8fa7b] (rid 106291) by dgp on 2001-04-01 01:47:49:
- closedate changed to: "2001-03-31T18:47:49"
- closer changed to: "dgp"