Support HTTP timeout detection in curl backend