runtime icon indicating copy to clipboard operation
runtime copied to clipboard

Once HttpClient.DefaultProxy is accessed, it will not be updated again.

Open simpleway2016 opened this issue 3 years ago • 3 comments

Description

When the system proxy changes, HttpClient.DefaultProxy still retrieves the old proxy.

Reproduction Steps

When running the program and accessing HttpClient.DefaultProxy, if the system proxy is modified afterwards, the program will still retrieve the old proxy when accessing HttpClient.DefaultProxy again.

Expected behavior

nothing

Actual behavior

nothing

Regression?

No response

Known Workarounds

No response

Configuration

No response

Other information

No response

simpleway2016 avatar Jul 05 '23 09:07 simpleway2016

Tagging subscribers to this area: @dotnet/ncl See info in area-owners.md if you want to be subscribed.

Issue Details

Description

When the system proxy changes, HttpClient.DefaultProxy still retrieves the old proxy.

Reproduction Steps

When running the program and accessing HttpClient.DefaultProxy, if the system proxy is modified afterwards, the program will still retrieve the old proxy when accessing HttpClient.DefaultProxy again.

Expected behavior

nothing

Actual behavior

nothing

Regression?

No response

Known Workarounds

No response

Configuration

No response

Other information

No response

Author: simpleway2016
Assignees: -
Labels:

area-System.Net.Http, untriaged

Milestone: -

ghost avatar Jul 05 '23 09:07 ghost

This is a known limitation - covered in #46910

karelz avatar Jul 07 '23 12:07 karelz

Duplicate of #46910

karelz avatar Jul 16 '23 11:07 karelz