deal with socket timout