Overview
| Artifact ID: | 9f6b4754652b357f092be80a727396fb76f0e7a4 |
|---|---|
| Ticket: | 2936225fffffffffffffffffffffffffffffffff
[chan copy] overruns slow receiver |
| User & Date: | ferrieux on 2010-03-09 06:16:44 |
Changes
- icomment:
Also attaching a enhanced mychan.tcl showing the use of [chan pending output] in the proper generation of EAGAIN without loss nor duplication of data. This fact is verified by spawning: ./tclsh mychan.tcl | sh -c "sleep 1;cat > /tmp/big" (which fills buffers, then stalls for one second, then restarts, and ends) and verifying that /tmp/big has the exact expected size of 1000000 bytes. - login: "ferrieux"
- mimetype: "text/plain"
- username: "ferrieux"