curl_fetch_result: detect dead connections