Honor keepalive

This is the second attempt at #276 because it broke the `--skip-ssl-validation` flag.