Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 49e44895737c58df64437cda8433f54fb79085c4
Ticket: 217941ffffffffffffffffffffffffffffffffff
Can't catch { close $async_socket }
User & Date: nobody on 2000-10-26 00:46:22
Changes

  1. assignee changed to: "nobody"
  2. cmimetype changed to: "text/plain"
  3. 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.
    
    
    
    
    
  4. foundin changed to: "obsolete: 8.2.1"
  5. priority changed to: "5 Medium"
  6. resolution changed to: "None"
  7. status changed to: "Open"
  8. submitter changed to: "nobody"
  9. subsystem changed to: "60. NRE and coroutines"
  10. title changed to: "Can't catch { close $async_socket }"
  11. type changed to: "Bug"