update api for socket timeout