Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
T
Titanium-Web-Proxy
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
Titanium-Web-Proxy
Commits
f6dc0470
Commit
f6dc0470
authored
Sep 01, 2015
by
justcoding121
Committed by
justcoding121
Sep 01, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix readme
parent
b43f7134
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
20 deletions
+15
-20
README.md
README.md
+0
-5
RequestHandler.cs
Titanium.Web.Proxy/RequestHandler.cs
+15
-15
No files found.
README.md
View file @
f6dc0470
...
@@ -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
=====
=====
...
...
Titanium.Web.Proxy/RequestHandler.cs
View file @
f6dc0470
...
@@ -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
)
{
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment