respect connection state
proper connection reset for keepalive connections
opportunistic read for keepalive connections
handle EAGAIN / EWOULDBLOCK