make enable to specify timeout to ping thread for mobile mode
modify epoll/kqueue timeout of iOS/Android platform