Added option --keepalive to use a non-standard keep-alive agent.