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
6e3ae006
Commit
6e3ae006
authored
Apr 24, 2019
by
Honfika
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
call the event handlers from http/2 code
parent
578fd98c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
Http2Helper.cs
src/Titanium.Web.Proxy/Http2/Http2Helper.cs
+3
-1
No files found.
src/Titanium.Web.Proxy/Http2/Http2Helper.cs
View file @
6e3ae006
...
@@ -63,6 +63,7 @@ namespace Titanium.Web.Proxy.Http2
...
@@ -63,6 +63,7 @@ namespace Titanium.Web.Proxy.Http2
while
(
true
)
while
(
true
)
{
{
int
read
=
await
ForceRead
(
input
,
headerBuffer
,
0
,
9
,
cancellationToken
);
int
read
=
await
ForceRead
(
input
,
headerBuffer
,
0
,
9
,
cancellationToken
);
onCopy
(
headerBuffer
,
0
,
read
);
if
(
read
!=
9
)
if
(
read
!=
9
)
{
{
return
;
return
;
...
@@ -75,6 +76,7 @@ namespace Titanium.Web.Proxy.Http2
...
@@ -75,6 +76,7 @@ namespace Titanium.Web.Proxy.Http2
headerBuffer
[
8
];
headerBuffer
[
8
];
read
=
await
ForceRead
(
input
,
buffer
,
0
,
length
,
cancellationToken
);
read
=
await
ForceRead
(
input
,
buffer
,
0
,
length
,
cancellationToken
);
onCopy
(
buffer
,
0
,
read
);
if
(
read
!=
length
)
if
(
read
!=
length
)
{
{
return
;
return
;
...
@@ -138,7 +140,7 @@ namespace Titanium.Web.Proxy.Http2
...
@@ -138,7 +140,7 @@ namespace Titanium.Web.Proxy.Http2
while
(
bytesToRead
>
0
)
while
(
bytesToRead
>
0
)
{
{
int
read
=
await
input
.
ReadAsync
(
buffer
,
offset
,
bytesToRead
,
cancellationToken
);
int
read
=
await
input
.
ReadAsync
(
buffer
,
offset
,
bytesToRead
,
cancellationToken
);
if
(
read
==
-
1
)
if
(
read
==
0
)
{
{
break
;
break
;
}
}
...
...
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