diff options
author | Robey Pointer <robey@lag.net> | 2005-03-26 05:53:00 +0000 |
---|---|---|
committer | Robey Pointer <robey@lag.net> | 2005-03-26 05:53:00 +0000 |
commit | 5d8d1938fa6aa58a1b27730d8bcac8db963f4595 (patch) | |
tree | 4013ff87d56690524fa24e00415581658587cee8 /demo.py | |
parent | 3e5bd84cc58fc6db485c5a188ac0ef90280b2804 (diff) |
[project @ Arch-1:robey@lag.net--2003-public%secsh--dev--1.0--patch-156]
rewrite channel pipes to work on windows
the pipe system i was using for simulating an os-level FD (for select) was
retarded. i realized this week that i could just use a single byte in the
pipe to signal "data is ready" and not try to feed all incoming data thru
the pipe -- and then i don't have to try to make the pipe non-blocking (which
should make it work on windows). a lot of duplicate code got removed and now
it's all going thru the same code-path on read.
there's still a slight penalty on incoming feeds and calling 'recv' when a
pipe has been opened (by calling 'fileno'), but it's tiny.
removed a bunch of documentation and comments about things not working on
windows, since i think they probably do now.
Diffstat (limited to 'demo.py')
0 files changed, 0 insertions, 0 deletions