add timeout function : CONNECTTIMEOUT to 999