add an option for configuring http keepalive