Overview
| Artifact ID: | dc9f4997ee92cb9346823d869405670a0693ec71 |
|---|---|
| Ticket: | 218332ffffffffffffffffffffffffffffffffff
socket command with telnet servers |
| User & Date: | nobody on 2000-10-26 00:56:19 |
Changes
- assignee changed to: "nobody"
- cmimetype changed to: "text/plain"
- comment changed 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 changed to: "obsolete: 8.2.2"
- priority changed to: "5 Medium"
- resolution changed to: "None"
- status changed to: "Open"
- submitter changed to: "nobody"
- subsystem changed to: "63. (unused)"
- title changed to: "socket command with telnet servers"
- type changed to: "Bug"