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
b4f25c89
Commit
b4f25c89
authored
Jun 02, 2018
by
zyearn
Committed by
gejun
Sep 26, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add flow control in http2
parent
d6ebf1d2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
0 deletions
+7
-0
http2_rpc_protocol.cpp
src/brpc/policy/http2_rpc_protocol.cpp
+0
-0
http2_rpc_protocol.h
src/brpc/policy/http2_rpc_protocol.h
+2
-0
socket.h
src/brpc/socket.h
+5
-0
No files found.
src/brpc/policy/http2_rpc_protocol.cpp
View file @
b4f25c89
This diff is collapsed.
Click to expand it.
src/brpc/policy/http2_rpc_protocol.h
View file @
b4f25c89
...
...
@@ -164,6 +164,7 @@ private:
class
H2StreamContext
:
public
HttpContext
{
public
:
H2StreamContext
();
~
H2StreamContext
();
void
Init
(
H2Context
*
conn_ctx
,
int
stream_id
);
H2StreamContext
(
H2Context
*
conn_ctx
,
int
stream_id
);
...
...
@@ -198,6 +199,7 @@ friend class H2Context;
#endif
bool
_stream_ended
;
butil
::
atomic
<
int64_t
>
_remote_window_size
;
butil
::
atomic
<
int64_t
>
_local_window_size
;
uint64_t
_correlation_id
;
butil
::
IOBuf
_remaining_header_fragment
;
};
...
...
src/brpc/socket.h
View file @
b4f25c89
...
...
@@ -762,6 +762,11 @@ private:
butil
::
Mutex
_stream_mutex
;
std
::
set
<
StreamId
>
*
_stream_set
;
// In some protocols, certain resources may run out according to
// protocol spec. For example, http2 streamId would run out after
// long time running and a new socket should be created. In order
// not to affect main socket, _agent_socket are introduced to
// represent the communication socket.
SocketUniquePtr
_agent_socket
;
};
...
...
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