Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: fe98fc49691bd5d6694b7a7497a4a72db934bec3
Ticket: b9bfaf5fdb2cb794475fa70121c88859a8fc8496
EAGAIN throw in reflected channel in blocking mode causes eof (data loss)
User & Date: sebres on 2016-06-23 20:03:38
Changes

  1. assignee changed to: "nobody"
  2. closer changed to: "nobody"
  3. cmimetype changed to: "text/plain"
  4. comment changed to:
    Th-1 get a reflected channel "rch" for real non-blocking channel "ch" and do the processing of real channel totally asynchronously in thread Th-2.
    If Th-1 switches the reflected channel to blocking mode and then does 
    `set data [read $rch]`
    And if currently no data for "ch" (but still no eof), the Th-2 executes "return -code error EAGAIN" to signal it should repeat later.
    
    Then Th-1 get eof on "rch" and stop read. 
    
    I know that Th-2 could wait with something like `vwait`, etc., but imho, reflected channel should also accept return code EAGAIN in blocking mode also (and wait then in the main thread of channel Th-1, not in reflected one Th-2, because if it asynchronous, it can serve several channels at once)...
    
  5. foundin changed to: "8.5"
  6. is_private changed to: "0"
  7. login: "sebres"
  8. priority changed to: "5 Medium"
  9. resolution changed to: "None"
  10. severity changed to: "Minor"
  11. status changed to: "Open"
  12. submitter changed to: "sebres"
  13. subsystem changed to: "25. Channel System"
  14. title changed to:
    EAGAIN throw in reflected channel in blocking mode causes eof (data loss)
    
  15. type changed to: "Bug"