Skip to content

Add max_frame_size support to fake TSI handshaker and fake HS service - #25621

Merged
yihuazhang merged 1 commit into
grpc:masterfrom
yihuazhang:update_fake_tsi
Mar 6, 2021
Merged

yihuazhang merged 1 commit into
grpc:masterfrom
yihuazhang:update_fake_tsi

Conversation

@yihuazhang

Copy link
Copy Markdown
Contributor

Fake TSI handshaker and HS services are used in envoy unit/integration tests. Recently we wanted to add the support of setting max_frame_size to envoy: envoyproxy/envoy#15297 (comment), which needs the changes in this PR to verify its behavior.

@yihuazhang yihuazhang added area/core release notes: no Indicates if PR should not be in release notes labels Mar 4, 2021
Comment thread src/core/tsi/fake_transport_security.cc Resolved
Comment thread src/core/tsi/fake_transport_security.cc Resolved
result.mutable_local_identity()->set_service_account("local_identity");
string key(1024, '\0');
result.set_key_data(key);
result.set_max_frame_size(16384);

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am wondering how Envoy consume this value, especially we hardcode 16k here. What is Envoy change frame size to a different value?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The change in this PR will be used only in the test, so it will not have any effect on envoy itself. By setting the frame size in the result, we want to verify this code path is indeed executed.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

SG

@yihuazhang

Copy link
Copy Markdown
Contributor Author

Thanks for the review, Jiangtao.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/core release notes: no Indicates if PR should not be in release notes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants