Commit 60e067e
authored
Remove proxy settings detection behavior in "default proxy mode." (#1188)
* Remove proxy settings detection behavior in "default proxy mode."
This commit partially reverts eb108ad in order to work around a reliability problem with WinHttpGetProxyForUrl. That function hangs unless there is an available thread pool thread to complete the WPAD request. As a result, if a customer issued ~512 concurrent HTTP requests, or otherwise needed that many thread pool threads, there would not be a thread available for WinHTTP to complete the operation, and the program would deadlock.
Moreover this call to WinHttpGetDefaultProxyConfiguration is extremely expensive, taking ~20% of overall CPU for the entire program for some Azure Storage SDK customers.
The function WinHttpGetProxyForUrlEx is supposed to help with this problem by being asynchronous, but that function was added in Windows 8, so we can't use it unconditionally. And on Windows 8.1 we already are using WINHTTP_ACCESS_TYPE_AUTOMATIC_PROXY instead of trying to do proxy autodetect ourselves.1 parent bed8fa5 commit 60e067e
File tree
2 files changed
+32
-34
lines changed- Release
- include/cpprest/details
- src/http/client
2 files changed
+32
-34
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | 13 | | |
18 | 14 | | |
19 | 15 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
243 | 243 | | |
244 | 244 | | |
245 | 245 | | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
246 | 264 | | |
247 | 265 | | |
248 | 266 | | |
| |||
818 | 836 | | |
819 | 837 | | |
820 | 838 | | |
821 | | - | |
| 839 | + | |
822 | 840 | | |
| 841 | + | |
823 | 842 | | |
824 | 843 | | |
825 | 844 | | |
826 | 845 | | |
827 | | - | |
828 | | - | |
| 846 | + | |
| 847 | + | |
| 848 | + | |
| 849 | + | |
| 850 | + | |
| 851 | + | |
829 | 852 | | |
830 | 853 | | |
831 | | - | |
832 | 854 | | |
833 | | - | |
| 855 | + | |
834 | 856 | | |
835 | | - | |
836 | | - | |
837 | | - | |
838 | | - | |
839 | | - | |
840 | | - | |
| 857 | + | |
| 858 | + | |
841 | 859 | | |
| 860 | + | |
842 | 861 | | |
843 | | - | |
844 | | - | |
845 | | - | |
846 | | - | |
847 | | - | |
848 | | - | |
849 | | - | |
850 | | - | |
851 | | - | |
852 | | - | |
| 862 | + | |
853 | 863 | | |
854 | 864 | | |
855 | 865 | | |
| |||
881 | 891 | | |
882 | 892 | | |
883 | 893 | | |
884 | | - | |
885 | | - | |
886 | | - | |
887 | | - | |
888 | | - | |
889 | 894 | | |
890 | | - | |
891 | 895 | | |
892 | 896 | | |
893 | 897 | | |
| |||
1007 | 1011 | | |
1008 | 1012 | | |
1009 | 1013 | | |
1010 | | - | |
1011 | | - | |
1012 | | - | |
| 1014 | + | |
1013 | 1015 | | |
1014 | 1016 | | |
1015 | 1017 | | |
| |||
0 commit comments