the problem Alan is simply that NAS is UBNT and it's behavior is not predicted , it's close the session even when I set session-timeout so this solution is shortcut to that