add set timeout function for gt_socket