Commit 51a8e576 authored by justcoding121's avatar justcoding121

key exists fix

parent 2ac01623
...@@ -40,7 +40,7 @@ namespace Titanium.Web.Proxy.EventArguments ...@@ -40,7 +40,7 @@ namespace Titanium.Web.Proxy.EventArguments
bufferSize = server.BufferSize; bufferSize = server.BufferSize;
bufferPool = server.BufferPool; bufferPool = server.BufferPool;
exceptionFunc = server.ExceptionFunc; exceptionFunc = server.ExceptionFunc;
TimeLine.Add("Session Created", DateTime.Now); TimeLine["Session Created"] = DateTime.Now;
} }
protected SessionEventArgsBase(ProxyServer server, ProxyEndPoint endPoint, protected SessionEventArgsBase(ProxyServer server, ProxyEndPoint endPoint,
......
...@@ -165,7 +165,7 @@ namespace Titanium.Web.Proxy ...@@ -165,7 +165,7 @@ namespace Titanium.Web.Proxy
//we need this to syphon out data from connection if API user changes them. //we need this to syphon out data from connection if API user changes them.
request.SetOriginalHeaders(); request.SetOriginalHeaders();
args.TimeLine.Add("Request Received", DateTime.Now); args.TimeLine["Request Received"] = DateTime.Now;
// If user requested interception do it // If user requested interception do it
await invokeBeforeRequest(args); await invokeBeforeRequest(args);
...@@ -215,7 +215,7 @@ namespace Titanium.Web.Proxy ...@@ -215,7 +215,7 @@ namespace Titanium.Web.Proxy
//for connection pool, retry fails until cache is exhausted. //for connection pool, retry fails until cache is exhausted.
var result = await retryPolicy<ServerConnectionException>().ExecuteAsync(async (serverConnection) => var result = await retryPolicy<ServerConnectionException>().ExecuteAsync(async (serverConnection) =>
{ {
args.TimeLine.Add("Server Connection Created", DateTime.Now); args.TimeLine["Server Connection Created"] = DateTime.Now;
// if upgrading to websocket then relay the request without reading the contents // if upgrading to websocket then relay the request without reading the contents
if (request.UpgradeToWebSocket) if (request.UpgradeToWebSocket)
...@@ -383,7 +383,7 @@ namespace Titanium.Web.Proxy ...@@ -383,7 +383,7 @@ namespace Titanium.Web.Proxy
await handleHttpSessionResponse(args); await handleHttpSessionResponse(args);
} }
args.TimeLine.Add("Response Sent", DateTime.Now); args.TimeLine["Response Sent"] = DateTime.Now;
} }
/// <summary> /// <summary>
......
...@@ -24,7 +24,7 @@ namespace Titanium.Web.Proxy ...@@ -24,7 +24,7 @@ namespace Titanium.Web.Proxy
// read response & headers from server // read response & headers from server
await args.WebSession.ReceiveResponse(cancellationToken); await args.WebSession.ReceiveResponse(cancellationToken);
args.TimeLine.Add("Response Received", DateTime.Now); args.TimeLine["Response Received"] = DateTime.Now;
var response = args.WebSession.Response; var response = args.WebSession.Response;
args.ReRequest = false; args.ReRequest = false;
......
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