]> asedeno.scripts.mit.edu Git - PuTTY.git/commit
Reading 4K at a time from a serial port turns out to be a bit
authorSimon Tatham <anakin@pobox.com>
Mon, 28 Aug 2006 18:26:50 +0000 (18:26 +0000)
committerSimon Tatham <anakin@pobox.com>
Mon, 28 Aug 2006 18:26:50 +0000 (18:26 +0000)
commita485923ae4832a7983b8522b33f839dd033e238b
tree6646b2476b282b45fb67935ce6f34aa18be31eda
parent2aedc83f8dce7811704a28fa7bb1f81e79f653b8
Reading 4K at a time from a serial port turns out to be a bit
unfriendly in an interactive session, because at 19200 baud it takes
nearly two seconds to receive that much data, and as long as the
data is flowing continuously Windows waits until it has a full
buffer. So here's another annoying flag in the winhandl API, which
restricts reads to length 1 so that serial output shows up as it
appears.

(I tried this yesterday, but without the OVERLAPPED fix in r6826 it
behaved very erratically. It now seems solid.)

[originally from svn r6827]
[r6826 == 2aedc83f8dce7811704a28fa7bb1f81e79f653b8]
windows/winhandl.c
windows/winser.c
windows/winstuff.h