Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
Grpc
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
tci-gateway-module
Grpc
Commits
6461c34e
Commit
6461c34e
authored
7 years ago
by
Craig Tiller
Browse files
Options
Downloads
Plain Diff
Merge branch 'minimal' into minimal_test
parents
9b3648a2
6b97e534
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
BUILD
+32
-4
32 additions, 4 deletions
BUILD
src/core/lib/surface/init.c
+28
-0
28 additions, 0 deletions
src/core/lib/surface/init.c
with
60 additions
and
4 deletions
BUILD
+
32
−
4
View file @
6461c34e
...
...
@@ -75,6 +75,8 @@ grpc_cc_library(
"
grpc_transport_chttp2_client_secure
"
,
"
grpc_transport_chttp2_server_insecure
"
,
"
grpc_transport_chttp2_server_secure
"
,
"
grpc_max_age_filter
"
,
"
grpc_message_size_filter
"
,
],
)
...
...
@@ -112,6 +114,8 @@ grpc_cc_library(
"
grpc_resolver_sockaddr
"
,
"
grpc_transport_chttp2_client_insecure
"
,
"
grpc_transport_chttp2_server_insecure
"
,
"
grpc_max_age_filter
"
,
"
grpc_message_size_filter
"
,
],
)
...
...
@@ -436,8 +440,6 @@ grpc_cc_library(
"
src/core/lib/channel/handshaker_registry.c
"
,
"
src/core/lib/channel/http_client_filter.c
"
,
"
src/core/lib/channel/http_server_filter.c
"
,
"
src/core/ext/filters/max_age/max_age_filter.c
"
,
"
src/core/ext/filters/message_size/message_size_filter.c
"
,
"
src/core/lib/compression/compression.c
"
,
"
src/core/lib/compression/message_compress.c
"
,
"
src/core/lib/debug/trace.c
"
,
...
...
@@ -564,8 +566,6 @@ grpc_cc_library(
"
src/core/lib/channel/handshaker_registry.h
"
,
"
src/core/lib/channel/http_client_filter.h
"
,
"
src/core/lib/channel/http_server_filter.h
"
,
"
src/core/ext/filters/max_age/max_age_filter.h
"
,
"
src/core/ext/filters/message_size/message_size_filter.h
"
,
"
src/core/lib/compression/algorithm_metadata.h
"
,
"
src/core/lib/compression/message_compress.h
"
,
"
src/core/lib/debug/trace.h
"
,
...
...
@@ -736,6 +736,34 @@ grpc_cc_library(
],
)
grpc_cc_library
(
name
=
"
grpc_max_age_filter
"
,
srcs
=
[
"
src/core/ext/filters/max_age/max_age_filter.c
"
,
],
hdrs
=
[
"
src/core/ext/filters/max_age/max_age_filter.h
"
,
],
language
=
"
c
"
,
deps
=
[
"
grpc_base
"
,
],
)
grpc_cc_library
(
name
=
"
grpc_message_size_filter
"
,
srcs
=
[
"
src/core/ext/filters/message_size/message_size_filter.c
"
,
],
hdrs
=
[
"
src/core/ext/filters/message_size/message_size_filter.h
"
,
],
language
=
"
c
"
,
deps
=
[
"
grpc_base
"
,
],
)
grpc_cc_library
(
name
=
"
grpc_codegen
"
,
language
=
"
c
"
,
...
...
This diff is collapsed.
Click to expand it.
src/core/lib/surface/init.c
+
28
−
0
View file @
6461c34e
...
...
@@ -105,6 +105,22 @@ static bool maybe_add_http_filter(grpc_exec_ctx *exec_ctx,
return
true
;
}
typedef
struct
{
const
grpc_channel_filter
*
filter
;
const
char
*
controlling_channel_arg
;
bool
default_on
;
}
maybe_prepend_filter_args
;
static
const
maybe_prepend_filter_args
message_size_args
=
{
&
grpc_message_size_filter
,
NULL
,
true
};
static
bool
maybe_prepend_filter
(
grpc_exec_ctx
*
exec_ctx
,
grpc_channel_stack_builder
*
builder
,
void
*
arg
)
{
return
grpc_channel_stack_builder_prepend_filter
(
builder
,
(
const
grpc_channel_filter
*
)
arg
,
NULL
,
NULL
);
}
static
void
register_builtin_channel_init
()
{
grpc_channel_init_register_stage
(
GRPC_CLIENT_DIRECT_CHANNEL
,
GRPC_CHANNEL_INIT_BUILTIN_PRIORITY
,
...
...
@@ -113,6 +129,18 @@ static void register_builtin_channel_init() {
GRPC_SERVER_CHANNEL
,
GRPC_CHANNEL_INIT_BUILTIN_PRIORITY
,
prepend_filter
,
(
void
*
)
&
grpc_server_deadline_filter
);
grpc_channel_init_register_stage
(
<<<<<<<
HEAD
=======
GRPC_CLIENT_SUBCHANNEL
,
GRPC_CHANNEL_INIT_BUILTIN_PRIORITY
,
maybe_prepend_filter
,
(
void
*
)
&
message_size_args
);
grpc_channel_init_register_stage
(
GRPC_CLIENT_DIRECT_CHANNEL
,
GRPC_CHANNEL_INIT_BUILTIN_PRIORITY
,
prepend_filter
,
(
void
*
)
&
grpc_message_size_filter
);
grpc_channel_init_register_stage
(
GRPC_SERVER_CHANNEL
,
GRPC_CHANNEL_INIT_BUILTIN_PRIORITY
,
prepend_filter
,
(
void
*
)
&
grpc_message_size_filter
);
grpc_channel_init_register_stage
(
>>>>>>>
6
b97e5344f4dddcdad1e0525b733162c0025b770
GRPC_CLIENT_CHANNEL
,
GRPC_CHANNEL_INIT_BUILTIN_PRIORITY
,
prepend_filter
,
(
void
*
)
&
grpc_compress_filter
);
grpc_channel_init_register_stage
(
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment