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
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
tci-gateway-module
Grpc
Commits
47e541cc
Commit
47e541cc
authored
Dec 7, 2015
by
Craig Tiller
Browse files
Options
Downloads
Patches
Plain Diff
Add a test of invalid values to bad_client
parent
b67ef24d
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
test/core/bad_client/tests/initial_settings_frame.c
+5
-0
5 additions, 0 deletions
test/core/bad_client/tests/initial_settings_frame.c
with
5 additions
and
0 deletions
test/core/bad_client/tests/initial_settings_frame.c
+
5
−
0
View file @
47e541cc
...
@@ -35,6 +35,7 @@
...
@@ -35,6 +35,7 @@
#include
"src/core/surface/server.h"
#include
"src/core/surface/server.h"
#define PFX_STR "PRI * HTTP/2.0\r\n\r\nSM\r\n\r\n"
#define PFX_STR "PRI * HTTP/2.0\r\n\r\nSM\r\n\r\n"
#define ONE_SETTING_HDR "\x00\x00\x06\x04\x00\x00\x00\x00\x00"
static
void
verifier
(
grpc_server
*
server
,
grpc_completion_queue
*
cq
)
{
static
void
verifier
(
grpc_server
*
server
,
grpc_completion_queue
*
cq
)
{
while
(
grpc_server_has_open_connections
(
server
))
{
while
(
grpc_server_has_open_connections
(
server
))
{
...
@@ -90,6 +91,10 @@ int main(int argc, char **argv) {
...
@@ -90,6 +91,10 @@ int main(int argc, char **argv) {
PFX_STR
"
\x00\x00\x04\x04\x00\x00\x00\x00\x00
"
,
0
);
PFX_STR
"
\x00\x00\x04\x04\x00\x00\x00\x00\x00
"
,
0
);
GRPC_RUN_BAD_CLIENT_TEST
(
verifier
,
GRPC_RUN_BAD_CLIENT_TEST
(
verifier
,
PFX_STR
"
\x00\x00\x05\x04\x00\x00\x00\x00\x00
"
,
0
);
PFX_STR
"
\x00\x00\x05\x04\x00\x00\x00\x00\x00
"
,
0
);
/* some settings values are illegal */
/* max frame size = 0 */
GRPC_RUN_BAD_CLIENT_TEST
(
verifier
,
PFX_STR
ONE_SETTING_HDR
"
\x00\x05\x00\x00\x00\x00
"
,
GRPC_BAD_CLIENT_DISCONNECT
);
return
0
;
return
0
;
}
}
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
sign in
to comment