Don't use printf() unless necessary.
Set TCP_NODELAY on client sockets.
Handle read errors; don't flush clients unless 1KB outstanding.