Artifacts Associated With Ticket 218332
Ticket change [dc9f4997ee] (rid 114514) by nobody on 2000-10-26 00:56:19:
- assignee initialized to: "nobody"
- cmimetype initialized to: "text/plain"
- comment initialized to:
OriginalBugID: 3930 Bug Version: 8.2.2 SubmitDate: '1999-12-23' LastModified: '2000-01-10' Severity: MED Status: Closed Submitter: techsupp ChangedBy: hobbs OS: Linux-Red Hat OSVersion: Linux Mandrake 6.1 - (Redhat compatible) FixedDate: '2000-10-25' ClosedDate: '2000-01-10' Name: SL ReproducibleScript: proc read {sock} { global gotread puts "READ -> [gets $sock]" set gotread 1 } set sock [socket twoup.q-net.net.au 23] vwait gotread ObservedBehavior: Just sits and does not respond (except for CTRL C / CTRLZ etc etc) but the gets command just hangs the script DesiredBehavior: well, for *something* to happen? and for it not to lock up There's something else going on here, that wasn't properly entered into the bug report (important info). This little snippet will always hang, as expected, because the user is essentially making a socket call, and then doing a vwait. The proc that is defined will never be called. There is no use of fileevent, and the user likely wants an -async socket. Also, it is unlikely that redefining the core "read" command is a good idea. The user should look at the socket examples in the Tcl FAQ: http://www.purl.org/net/tcl-faq/ for some premade stuff, since there are already some basic telnet communication scripts there as well. -- 01/10/2000 hobbs - foundin initialized to: "obsolete: 8.2.2"
- 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 command with telnet servers"
- type initialized to: "Bug"
Ticket change [a3a25df71f] (rid 110075) by welch on 2000-10-26 08:20:06:
- closedate changed to: "2000-10-26T01:20:06"
- closer changed to: "welch"
- priority changed to: "2"
- resolution changed to: "Fixed"
- status changed to: "Closed"
Ticket change [e81827ca1d] (rid 104587) by dgp on 2001-04-01 01:47:59:
- subsystem changed to: "27. Channel Types"
Ticket change [58f3e0deaf] (rid 117885) by dgp on 2001-04-01 01:48:00:
- closedate changed to: "2001-03-31T18:48:00"
- closer changed to: "dgp"