add setTimeOut for socket