Reading 4K at a time from a serial port turns out to be a bit
authorsimon <simon@cda61777-01e9-0310-a592-d414129be87e>
Mon, 28 Aug 2006 18:26:50 +0000 (18:26 +0000)
committersimon <simon@cda61777-01e9-0310-a592-d414129be87e>
Mon, 28 Aug 2006 18:26:50 +0000 (18:26 +0000)
commitc606abbc2db403e50bf489aa0a1986d404bf2ac5
tree6646b2476b282b45fb67935ce6f34aa18be31eda
parent758a137739edff67a485ef9d534764cef8aab807
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.)

git-svn-id: svn://svn.tartarus.org/sgt/putty@6827 cda61777-01e9-0310-a592-d414129be87e
windows/winhandl.c
windows/winser.c
windows/winstuff.h