Commit Graph

5 Commits

Author SHA1 Message Date
Tony Garnock-Jones 0c05a400f8 Fix bugs in port-closure-detection logic.
To begin with, I was looking at closure of the wrong port. Fixing
that, however, still left me with the problem that there was no event
for closure of the downstream port that I could use, so the
input-cooker has to poll to see if downstream has indicated that it
should be shut down. Finally, the actual port-closing code was doing
different things in different cases, so I've straightened that out as
well, and there was a race between closing raw-out in the
output-cooker and writing some feedback to it in the input-cooker, so
I've added a with-handlers to ignore write errors in the input-cooker.
2011-11-04 13:57:42 -04:00
Tony Garnock-Jones f70354c683 Read whole buffers at once, rather than a character at a time 2011-11-04 13:22:51 -04:00
Tony Garnock-Jones e0cb011ff4 Take rubout and backspace to be the same thing. 2011-11-02 18:55:13 -04:00
Tony Garnock-Jones c42934d07b Uncook newlines into CRLFs on the way out. 2011-10-26 19:13:00 -04:00
Tony Garnock-Jones d47f553e21 Fix bugs in channel shutdown handling. Add tty cooker. 2011-10-26 00:07:38 -04:00