Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: a0d16597e750f601ef8180e3505cc1459d3b14a5
Ticket: 218398ffffffffffffffffffffffffffffffffff
TR#2178 apparently not fixed in Tcl 8.3. Server never accep
User & Date: nobody on 2000-10-26 00:57:06
Changes

  1. assignee changed to: "nobody"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    OriginalBugID: 5220 Bug
    Version: 8.3
    SubmitDate: '2000-04-21'
    LastModified: '2000-04-24'
    Severity: CRIT
    Status: Closed
    Submitter: techsupp
    ChangedBy: hobbs
    OS: Windows NT
    OSVersion: NT 4.0 SP 5
    Machine: gateway e-5200
    FixedDate: '2000-10-25'
    ClosedDate: '2000-04-24'
    
    
    Name: Pete Tinker
    
    ReproducibleScript:
    # Accept a connection from the WTK app
    # sock -- socket on which connection is made
    # addr -- address of connector
    # port -- port used for connection
    #
    proc GUIAccept "sock addr port" {
        global GUIsockR GUIsockW
    
        if {$GUIsockR == -1} {
    set GUIsockR $sock
    putsD "Got READ connection"
        } else {
    set GUIsockW $sock
    putsD "Got WRITE connection"
        }
        fconfigure $sock -buffering line
    }
    
    # Connect to the application.
    #
    proc connectToAPP "" {
        global GUIsockR GUIsockW wt_GUIPort
    
        putsD "connecting to APP; waiting on port $wt_GUIPort"
        set server [socket -server GUIAccept $wt_GUIPort]
        putsD "waiting for APP connect ..."
        vwait GUIsockW
    }
    
    I never get an accept from the client, which is a C-based application.  This worked in 8.1.1, was supposedly fixed, but still does not work in 8.3.
    
    ObservedBehavior:
    I never get an accept from the client, which is a C-based application.  This worked in 8.1.1, was supposedly fixed, but still does not work in 8.3.
    
    DesiredBehavior:
    I should receive two messages from GUIAccept, indicating two connections.  I get no messages, and the script blocks at the vwait.
    
    
    
    Noted in newsgroup:
    
    You aren't setting any fileevents in the accept.
    That isn't the readable and writeable proc lumped into one.
    --
    * David Gravereaux * 
    -- 04/24/2000 hobbs
    
  4. foundin changed to: "obsolete: 8.3"
  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: "63. (unused)"
  10. title changed to:
    TR#2178 apparently not fixed in Tcl 8.3.  Server never accep
    
  11. type changed to: "Bug"