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
- assignee changed to: "nobody"
- closer changed to: "nobody"
- cmimetype changed to: "text/plain"
- 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)...
- foundin changed to: "8.5"
- is_private changed to: "0"
- login: "sebres"
- priority changed to: "5 Medium"
- resolution changed to: "None"
- severity changed to: "Minor"
- status changed to: "Open"
- submitter changed to: "sebres"
- subsystem changed to: "25. Channel System"
- title changed to:
EAGAIN throw in reflected channel in blocking mode causes eof (data loss)
- type changed to: "Bug"