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
1bce2480
Commit
1bce2480
authored
Jul 21, 2019
by
Honfika
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
small cleanup
parent
3e7c8499
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
CustomBufferedStream.cs
....Web.Proxy/StreamExtended/Network/CustomBufferedStream.cs
+3
-3
No files found.
src/Titanium.Web.Proxy/StreamExtended/Network/CustomBufferedStream.cs
View file @
1bce2480
...
@@ -51,7 +51,7 @@ namespace Titanium.Web.Proxy.StreamExtended.Network
...
@@ -51,7 +51,7 @@ namespace Titanium.Web.Proxy.StreamExtended.Network
try
try
{
{
var
method
=
typeof
(
NetworkStream
).
GetMethod
(
nameof
(
Stream
.
ReadAsync
),
var
method
=
typeof
(
NetworkStream
).
GetMethod
(
nameof
(
Stream
.
ReadAsync
),
new
Type
[]
{
typeof
(
byte
[]),
typeof
(
int
),
typeof
(
int
),
typeof
(
CancellationToken
)
});
new
[]
{
typeof
(
byte
[]),
typeof
(
int
),
typeof
(
int
),
typeof
(
CancellationToken
)
});
if
(
method
!=
null
&&
method
.
DeclaringType
!=
typeof
(
Stream
))
if
(
method
!=
null
&&
method
.
DeclaringType
!=
typeof
(
Stream
))
{
{
networkStreamHack
=
false
;
networkStreamHack
=
false
;
...
@@ -685,7 +685,6 @@ namespace Titanium.Web.Proxy.StreamExtended.Network
...
@@ -685,7 +685,6 @@ namespace Titanium.Web.Proxy.StreamExtended.Network
return
((
TaskResult
<
int
>)
asyncResult
).
Result
;
return
((
TaskResult
<
int
>)
asyncResult
).
Result
;
}
}
/// <summary>
/// <summary>
/// Fix the .net bug with SslStream slow WriteAsync
/// Fix the .net bug with SslStream slow WriteAsync
/// https://github.com/justcoding121/Titanium-Web-Proxy/issues/495
/// https://github.com/justcoding121/Titanium-Web-Proxy/issues/495
...
@@ -709,6 +708,7 @@ namespace Titanium.Web.Proxy.StreamExtended.Network
...
@@ -709,6 +708,7 @@ namespace Titanium.Web.Proxy.StreamExtended.Network
return
vAsyncResult
;
return
vAsyncResult
;
}
}
public
override
void
EndWrite
(
IAsyncResult
asyncResult
)
public
override
void
EndWrite
(
IAsyncResult
asyncResult
)
{
{
if
(!
networkStreamHack
)
if
(!
networkStreamHack
)
...
...
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