Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AMLII-2058 Use correct buffer size for unix sockets #256

Merged
merged 1 commit into from
Oct 3, 2024
Merged

Conversation

vickenty
Copy link
Contributor

@vickenty vickenty commented Oct 2, 2024

When the client is configured to use UDS via builder's address() method, the client defaulted to UDP-sized buffer.

This patch adds a method to the ClientChannel to fetch the default packet size for each transport type, and uses it in the client to pass the correct value to the processor. The maxPacketSizeBytes field of the resolved builder is reduced to only storing the user preferred configuration, if any.

When the client is configured to use UDS via builder's address()
method, the client defaulted to UDP-sized buffer.

This patch adds a method to the ClientChannel to fetch the default
packet size for each transport type, and uses it in the client to
pass the correct value to the processor. The maxPacketSizeBytes field
of the resolved builder is reduced to only storing the user preferred
configuration, if any.
@vickenty vickenty marked this pull request as ready for review October 2, 2024 12:16
@vickenty vickenty requested a review from a team as a code owner October 2, 2024 12:16
Copy link
Member

@Gandem Gandem left a comment

Choose a reason for hiding this comment

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

LGTM, thanks!

@vickenty vickenty merged commit f51383a into master Oct 3, 2024
9 checks passed
@vickenty vickenty deleted the vickenty/fps branch October 3, 2024 14:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants