-
Notifications
You must be signed in to change notification settings - Fork 5.2k
Closed
dotnet/corefx
#31314Labels
bugos-windowstenet-compatibilityIncompatibility with previous versions or .NET FrameworkIncompatibility with previous versions or .NET Framework
Milestone
Description
This appears to be a bug in HttpSystemProxy class used in SocketsHttpHandler. The problem might not be isolated to just ClientWebSocket. But the parser in ParseProxyConfig doesn't seem to be able to handle simple "host:port" strings that are in IE settings.
Repro Code:
//using System;
//using System.IO;
//using System.Net;
//using System.Net.Http;
//using System.Net.WebSockets;
//using System.Threading;
var uri = new Uri("wss://corefx-net.cloudapp.net/websocket/echowebsocket.ashx");
var socket = new ClientWebSocket();
socket.ConnectAsync(uri, CancellationToken.None).GetAwaiter().GetResult();I debugged this to the ParseProxyConfig() method. It is getting a value of "localhost:3128". But ends up returning null URIs. So, the proxy is ignored.
CIPop
Metadata
Metadata
Assignees
Labels
bugos-windowstenet-compatibilityIncompatibility with previous versions or .NET FrameworkIncompatibility with previous versions or .NET Framework
