Enable KeepAlives and set timeout in http transport.