add timeout&connect timeout for server