Add an implementation of keep alive using java.io.
Its not particularly elegant - no variant of read(...) promises to be
non-blocking, even it could be made so