Add timeout when do ssl hand shake