Fix keepalive

keepalive option does not work.... so fixed it