Commit 3aa4f2fd authored by Honfika's avatar Honfika

missing files...

parent 323808b0
......@@ -65,7 +65,7 @@ namespace Titanium.Web.Proxy
await HeaderParser.ReadHeaders(clientStreamReader, connectRequest.Headers);
var connectArgs = new TunnelConnectSessionEventArgs(BufferSize, endPoint, connectRequest,
ExceptionFunc, cancellationTokenSource);
cancellationTokenSource, ExceptionFunc);
connectArgs.ProxyClient.TcpClient = tcpClient;
connectArgs.ProxyClient.ClientStream = clientStream;
......@@ -211,7 +211,7 @@ namespace Titanium.Web.Proxy
await TcpHelper.SendRaw(clientStream, connection.Stream, BufferSize,
(buffer, offset, count) => { connectArgs.OnDataSent(buffer, offset, count); },
(buffer, offset, count) => { connectArgs.OnDataReceived(buffer, offset, count); },
ExceptionFunc, connectArgs.CancellationTokenSource);
connectArgs.CancellationTokenSource, ExceptionFunc);
}
return;
......
......@@ -533,10 +533,9 @@ namespace Titanium.Web.Proxy.Network
var outdated = certificateCache.Where(x => x.Value.LastAccess < cutOff).ToList();
CachedCertificate removed;
foreach (var cache in outdated)
{
certificateCache.TryRemove(cache.Key, out removed);
certificateCache.TryRemove(cache.Key, out _);
}
//after a minute come back to check for outdated certificates in cache
......
......@@ -230,7 +230,7 @@ namespace Titanium.Web.Proxy
await TcpHelper.SendRaw(clientStream, connection.Stream, BufferSize,
(buffer, offset, count) => { args.OnDataSent(buffer, offset, count); },
(buffer, offset, count) => { args.OnDataReceived(buffer, offset, count); },
ExceptionFunc, cancellationTokenSource);
cancellationTokenSource, ExceptionFunc);
return;
}
......
......@@ -115,7 +115,7 @@ namespace Titanium.Web.Proxy
//var serverHelloInfo = await SslTools.PeekServerHello(serverStream);
await TcpHelper.SendRaw(clientStream, serverStream, BufferSize,
null, null, ExceptionFunc, cancellationTokenSource);
null, null, cancellationTokenSource, ExceptionFunc);
}
}
}
......
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