Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
B
brpc
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
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
brpc
Commits
eb8b97c2
Commit
eb8b97c2
authored
Oct 11, 2018
by
zhujiashun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove _goaway_sent
parent
f1a33346
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
9 deletions
+0
-9
http2_rpc_protocol.cpp
src/brpc/policy/http2_rpc_protocol.cpp
+0
-8
http2_rpc_protocol.h
src/brpc/policy/http2_rpc_protocol.h
+0
-1
No files found.
src/brpc/policy/http2_rpc_protocol.cpp
View file @
eb8b97c2
...
...
@@ -328,7 +328,6 @@ H2Context::H2Context(Socket* socket, const Server* server)
,
_last_received_stream_id
(
-
1
)
,
_last_sent_stream_id
(
1
)
,
_goaway_stream_id
(
-
1
)
,
_goaway_sent
(
false
)
,
_deferred_window_update
(
0
)
{
// Stop printing the field which is useless for remote settings.
_remote_settings
.
connection_window_size
=
0
;
...
...
@@ -532,7 +531,6 @@ ParseResult H2Context::Consume(
LOG
(
WARNING
)
<<
"Fail to send GOAWAY to "
<<
*
_socket
;
return
MakeParseError
(
PARSE_ERROR_ABSOLUTELY_WRONG
);
}
_goaway_sent
=
true
;
return
MakeMessage
(
NULL
);
}
}
else
{
...
...
@@ -549,12 +547,6 @@ H2ParseResult H2Context::OnHeaders(
LOG
(
ERROR
)
<<
"Invalid stream_id="
<<
frame_head
.
stream_id
;
return
MakeH2Error
(
H2_PROTOCOL_ERROR
);
}
if
(
_goaway_sent
)
{
// TODO(zhujiashun): After sending a GOAWAY frame, the sender can discard
// frames for streams initiated by the receiver with identifiers higher
// than the identified last stream.
// Do we really need this strict check?
}
const
bool
has_padding
=
(
frame_head
.
flags
&
H2_FLAGS_PADDED
);
const
bool
has_priority
=
(
frame_head
.
flags
&
H2_FLAGS_PRIORITY
);
if
(
frame_head
.
payload_size
<
...
...
src/brpc/policy/http2_rpc_protocol.h
View file @
eb8b97c2
...
...
@@ -383,7 +383,6 @@ friend void InitFrameHandlers();
int
_last_received_stream_id
;
uint32_t
_last_sent_stream_id
;
int
_goaway_stream_id
;
bool
_goaway_sent
;
H2Settings
_remote_settings
;
H2Settings
_local_settings
;
H2Settings
_unack_local_settings
;
...
...
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