fix failure in connecting gmail server after a long period of time(to be tested)