commit | 4d80a5b95136c6f48500eaa941253ed4ea6381bf | [log] [tgz] |
---|---|---|
author | Jeremy Kerr <jk@ozlabs.org> | Fri Mar 18 13:47:43 2016 +0800 |
committer | Jeremy Kerr <jk@ozlabs.org> | Fri Mar 18 14:04:23 2016 +0800 |
tree | fee721c6ca2c3e90561f68943312796f2ca41f6a | |
parent | ce0e68b3448d514fcb2991bae65bb549960c0545 [diff] |
Use non-blocking writes for clients We may have console clients that are remote, and so the write() to those clients may block. Since we're single-threaded, that block will delay output to all other clients (and read from the UART). This change uses nonblocking IO for the client sockets, and a small buffer to handle writes that would have blocked. Signed-off-by: Jeremy Kerr <jk@ozlabs.org>