runtime icon indicating copy to clipboard operation
runtime copied to clipboard

HttpClientHandler on unix (CurlHandler) hangs forever in case of negative scenarios

Open kapilash opened this issue 11 years ago • 2 comments

When curl handler encounters exception in its execution, it hangs forever.

        using (var handler = new HttpClientHandler())
        {
            handler.MaxAutomaticRedirections = 5;
            var client = new HttpClient(handler);
            await  client.GetAsync("http://httpbin.org/redirect/6");
        }

kapilash avatar Aug 29 '15 21:08 kapilash

I'm working on some changes to how threading is managed in CurlHandler. It should address this as well.

stephentoub avatar Aug 29 '15 22:08 stephentoub

Great. But my description of the problem may not be accurate. I ran tests thrice consecutively with the negative tests commented out and it went through. And I assumed that the negative tests are the culprits

Nevertheless, I trust your threading overhaul will fix the problem.

kapilash avatar Aug 29 '15 23:08 kapilash