Thanks @Ed_S I followed your code snippet and changed the keepalive_interval *3 to keepalive_interval * 1000. and increased the time to keep it alive and it resolved the issue.
Thanks @Ed_S I followed your code snippet and changed the keepalive_interval *3 to keepalive_interval * 1000. and increased the time to keep it alive and it resolved the issue.