Overview
| Artifact ID: | 5e17f502e858a5887e9deee111f5e40620d387f2 |
|---|---|
| Ticket: | b9bfaf5fdb2cb794475fa70121c88859a8fc8496
EAGAIN throw in reflected channel in blocking mode causes eof (data loss) |
| User & Date: | sebres on 2016-07-12 06:59:09 |
Changes
- icomment:
> If the transferred channel is set to blocking mode, EAGAIN should result in an EOF. - Where it is so described? - Why it should be comprehensible? If someone will produce EOF, the callback should return zero bytes. Imho, EAGAIN stands clearly for repeat again. Once again, as I already wrote, of course the worker can although wait inside read callback (2nd run), but there are situations, where it can be impossible or undesirable - just for example if the worker asynchronously serves multiple channels (multi-channel factory), the entering of wait cycle tcl-side (vwait, etc.) makes sometimes too large overhead (in addition to growing of the call / frame stack). Apart from the fact, that another thread has made blocking mode (so it will and can wait also). > would break existing implementations. The solution will be an easy-fix, so I don't think it will break something existing.
- login: "sebres"
- mimetype: "text/plain"