fix keepalive timeout logic

hardcode 15 seconds margin for keepalive timeout calculation