Commit f6dc0470 authored by justcoding121's avatar justcoding121 Committed by justcoding121

Fix readme

parent b43f7134
...@@ -12,11 +12,6 @@ Features ...@@ -12,11 +12,6 @@ Features
* Supports script injection * Supports script injection
* Async using HTTPWebRequest class for better performance * Async using HTTPWebRequest class for better performance
Outstanding Issues!
=================
* Stackoverflow/Performance degradation occurs on long run
Usage Usage
===== =====
......
...@@ -355,24 +355,24 @@ namespace Titanium.Web.Proxy ...@@ -355,24 +355,24 @@ namespace Titanium.Web.Proxy
args.ProxyRequest.BeginGetResponse(new AsyncCallback(HandleHttpSessionResponse), args); args.ProxyRequest.BeginGetResponse(new AsyncCallback(HandleHttpSessionResponse), args);
} }
//Now read the next request (if keep-Alive is enabled, otherwise exit this thread) }
//If client is pipeling the request, this will be immediately hit before response for previous request was made
if (args.ProxyRequest.KeepAlive)
{
tmpLine = null;
requestLines.Clear();
while (!String.IsNullOrEmpty(tmpLine = args.ClientStreamReader.ReadLine()))
{
requestLines.Add(tmpLine);
}
httpCmd = requestLines.Count() > 0 ? requestLines[0] : null;
TcpClient Client = args.Client;
//Http request body sent, now wait for next request //Now read the next request (if keep-Alive is enabled, otherwise exit this thread)
Task.Factory.StartNew(() => HandleHttpSessionRequest(Client, httpCmd, args.ClientStream, args.tunnelHostName, requestLines, args.ClientStreamReader, args.securehost)); //If client is pipeling the request, this will be immediately hit before response for previous request was made
if (args.ProxyRequest.KeepAlive)
{
tmpLine = null;
requestLines.Clear();
while (!String.IsNullOrEmpty(tmpLine = args.ClientStreamReader.ReadLine()))
{
requestLines.Add(tmpLine);
} }
} httpCmd = requestLines.Count() > 0 ? requestLines[0] : null;
TcpClient Client = args.Client;
//Http request body sent, now wait for next request
Task.Factory.StartNew(() => HandleHttpSessionRequest(Client, httpCmd, args.ClientStream, args.tunnelHostName, requestLines, args.ClientStreamReader, args.securehost));
}
} }
catch (IOException) catch (IOException)
{ {
......
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