commit | 6b1fed273992a6118b6150fecc304c9ee23780bc | [log] [tgz] |
---|---|---|
author | Jeremy Kerr <jk@ozlabs.org> | Tue Feb 07 21:40:38 2017 +0800 |
committer | Jeremy Kerr <jk@ozlabs.org> | Tue Jun 27 14:55:02 2017 +0800 |
tree | 47dd1d32b006c5244a0de77e3676447d94e5ffb8 | |
parent | f733c85a96c023c8eab588b58a588280e1dd106a [diff] |
server: improve blocked-write behaviour for handlers We currently don't implement POLLOUT properly; we never set this for polled events, and will repeat calls to write() if we see EAGAIN. This change improves the behaviour when writes start to block, by tracking when a fd is blocked. Once we detect blocking behaviour, we supress future (non-forced) writes, and wait for POLLOUT so we know when we can write again. Change-Id: I809bde4e1c7c78a58ea296d5c076b3d93c272558 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.