Need elasticsearch to timeout early when service is down rather than waiting for 10secs and throw connection error

I am deleting a document in elasticsearch. When elasticsearch service is not running, it throws connection error but takes about 10 secs. Can i specify connection timeout to timeout within 1 sec ?
timeout param does not work in this case

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.