add keepalive and read/write timeout