add timeout for socket connection