add keepalive support for long poll