]> asedeno.scripts.mit.edu Git - PuTTY_svn.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)
commitf6e81ffc3bdc4ebb43db2d5f677434379ef60259
tree6646b2476b282b45fb67935ce6f34aa18be31eda
parent386ec88ca367766b14915a0c9601bfb4da2a6dfb
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: http://svn.tartarus.org/sgt/putty@6827 cda61777-01e9-0310-a592-d414129be87e
windows/winhandl.c
windows/winser.c
windows/winstuff.h