Overview
| Artifact ID: | 49e44895737c58df64437cda8433f54fb79085c4 |
|---|---|
| Ticket: | 217941ffffffffffffffffffffffffffffffffff
Can't catch { close $async_socket } |
| User & Date: | nobody on 2000-10-26 00:46:22 |
Changes
- assignee changed to: "nobody"
- cmimetype changed to: "text/plain"
- comment changed to:
OriginalBugID: 3663 Bug Version: 8.2.1 SubmitDate: '1999-11-23' LastModified: '1999-11-29' Severity: CRIT Status: Closed Submitter: techsupp ChangedBy: hobbs RelatedBugIDs: 1356 OS: Macintosh OSVersion: 8.5.1 Machine: all kinds of PowerPC FixedDate: '2000-10-25' ClosedDate: '1999-11-29' Name: Q. Alex Zhao Extensions: none ReproducibleScript: I have a client-server program that uses async sockets and file event handlers. The client does catch { close $socket2server } after 10000 reconnect if the connection is broken (gets or puts returns an error). Here "socket2server" is the async, line buffering, non-blocking socket with a "readable" file event handle. This code works fine on Unix. But on a Mac (G3 + OS 8.5.1 + Tcl/Tk 8.2.1), it says something in the line of "can't close async socket file handle" and freezes the Mac. ObservedBehavior: "catch" didn't catch anything. Tcl/Tk (not my program) popped up a window saying "error closing async socket" and exited (or crashed). If I don't use "catch {close ...}" and just "unset" the variable, still the same error. DesiredBehavior: catch the error. Don't crash the system. - foundin changed to: "obsolete: 8.2.1"
- priority changed to: "5 Medium"
- resolution changed to: "None"
- status changed to: "Open"
- submitter changed to: "nobody"
- subsystem changed to: "60. NRE and coroutines"
- title changed to: "Can't catch { close $async_socket }"
- type changed to: "Bug"