Commit 49b75027 authored by justcoding121's avatar justcoding121

cleanup

parent 11d083b9
......@@ -24,9 +24,9 @@ namespace Titanium.Web.Proxy
private CertificateManager certificateCacheManager { get; set; }
/// <summary>
/// A object that manages tcp connection cache to server
/// A object that creates tcp connection to server
/// </summary>
private TcpConnectionFactory tcpConnectionCacheManager { get; set; }
private TcpConnectionFactory tcpConnectionFactory { get; set; }
/// <summary>
/// Manage system proxy settings
......@@ -126,7 +126,7 @@ namespace Titanium.Web.Proxy
CertificateCacheTimeOutMinutes = 60;
ProxyEndPoints = new List<ProxyEndPoint>();
tcpConnectionCacheManager = new TcpConnectionFactory();
tcpConnectionFactory = new TcpConnectionFactory();
systemProxySettingsManager = new SystemProxyManager();
firefoxProxySettingsManager = new FireFoxProxySettingsManager();
......
......@@ -323,7 +323,7 @@ namespace Titanium.Web.Proxy
}
//construct the web request that we are going to issue on behalf of the client.
connection = connection!=null? connection : await tcpConnectionCacheManager.GetClient(args.WebSession.Request.RequestUri.Host, args.WebSession.Request.RequestUri.Port, args.IsHttps, version,
connection = connection!=null? connection : await tcpConnectionFactory.GetClient(args.WebSession.Request.RequestUri.Host, args.WebSession.Request.RequestUri.Port, args.IsHttps, version,
UpStreamHttpProxy, UpStreamHttpsProxy, BUFFER_SIZE, SupportedSslProtocols, ConnectionTimeOutSeconds, new RemoteCertificateValidationCallback(ValidateServerCertificate),
new LocalCertificateSelectionCallback(SelectClientCertificate));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment