Skip to content
Tcl Source Code History Of Ticket 1021053
Login

History Of Ticket 1021053

Artifacts Associated With Ticket 1021053

  1. Ticket change [fd03a0587c] (rid 108339) by nobody on 2004-09-02 10:06:24:

    1. assignee initialized to: "andreas_kupries"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      running this script on windows xp Home
      tcl 8.4.7 threaded 
      thread version 2.6
      
      when trying to read from a socket after it was 
      transfered to the thread using "thread::transfer" I get 
      exception. the same happens with "thread::attach" 
      and "thread::detach"
      
      here is the script:
      
      package require Thread
      
      proc acceptRequest {sock ip port} {
      after idle [list handleRequest $sock $ip $port 
      [thread::id]]
      }
      
      proc handleRequest {sock ip port mainThreadId} {
      puts "$sock $ip $port"
      global threadId
      #thread::detach $sock
      thread::transfer $threadId $sock
      thread::send $threadId [list doSock $sock]
      }
      set threadId [thread::create]
      thread::send $threadId {
      proc doSock {sock}  {
      #thread::attach $sock
      puts [gets $sock 1]
      close $sock
      }
      }
      set sock [socket -server acceptRequest 7790]
      vwait foreve
      
      
      
    4. foundin initialized to: "None"
    5. priority initialized to: "5 Medium"
    6. resolution initialized to: "None"
    7. status initialized to: "Open"
    8. submitter initialized to: "nobody"
    9. subsystem initialized to: "49. Threading"
    10. title initialized to: "thread::transfer cause exception"
    11. type initialized to: "Bug"
  2. Ticket change [c42dae232d] (rid 111797) by dkf on 2004-09-02 19:11:39:

    1. assignee changed to: "vasiljevic"
    2. closedate changed to: "2004-09-02T12:11:39"
    3. closer changed to: "dkf"
    4. foundin changed to: "obsolete: 8.4.7"
    5. priority changed to: "9 Immediate"
    6. resolution changed to: "Duplicate"
    7. status changed to: "Closed"
    8. subsystem changed to: "80. Thread Package"