commit | 848fc877ea1c7ab1aa5ff796384043950ae379d9 | [log] [tgz] |
---|---|---|
author | Jeremy Kerr <jk@ozlabs.org> | Tue Jan 17 13:50:05 2017 +0800 |
committer | Jeremy Kerr <jk@ozlabs.org> | Thu Jan 19 16:41:51 2017 +0800 |
tree | 4f9b04720f1374ad425c78865043fe8e7e8a6a92 | |
parent | 243cab35e3b13d29ea693eec0aff31a3bb9b30a9 [diff] |
socket-handler: don't disconnect on slow client writes If a socket client is slow to receive data from the console server, we start filling a buffer. Currently, if we have more data to send and the buffer is full, we disconnect the client. Instead, this change will start performing blocking writes to the client if the buffer becomes full. This means we'll rate-limit the console data (including reads from the tty device) instead of disconnecting. This gives us a little flow control of tty data. Fixes openbmc/obmc-console#9 . Change-Id: Icf8ff7246f9ba776ff6fd76a25156ddd89d271d9 Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
Note: In addition to a toolchain and autoconf tools, this requires autotools-archive
to be installed.
To build this project, run the following shell commands:
./bootstrap.sh ./configure ${CONFIGURE_FLAGS} make
To fully clean the repository, run:
./bootstrap.sh clean
Running the server requires a serial port (e.g. /dev/ttyS0):
touch obmc-console.conf ./obmc-console-server --config obmc-console.conf ttyS0
To connect to the server, simply run the client:
./obmc-console-client
To disconnect the client, use the standard ~.
combination.