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

Add configuration support for nyhoor websocket read limit #1023

Conversation

bryanmcgrane
Copy link
Contributor

Adding support to configure the underlying nyhoor websocket read limit.

Changes

The changes are minimal

  1. Add new configuration property WithWebsocketsMessageReadLimit
  2. Apply this read limit to the websocket if it is configured, otherwise do nothing. In this case the default limit is used.

Verification

The codes successfully builds and works in my local environment.

@improbable-prow-robot improbable-prow-robot added the size/S Denotes a PR that changes 15-39 lines, ignoring generated files. label Jul 8, 2021
@bryanmcgrane
Copy link
Contributor Author

FYI - the build failed due to changes outside of my PR. It looks like the go.mod file has some linting issues.

Copy link
Contributor

@johanbrandhorst johanbrandhorst left a comment

Choose a reason for hiding this comment

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

Hi, thanks for this change! I think it's missing an additional flag for the grpcwebproxy standalone proxy that could configure this setting for the standalone proxy. What do you think?

@bryanmcgrane
Copy link
Contributor Author

Good thinking. That change has been made as well!

@johanbrandhorst
Copy link
Contributor

Looks like CI is failing because of some module inconsistencies. Could you run go mod tidy and commit the changes?

Copy link
Contributor

@johanbrandhorst johanbrandhorst left a comment

Choose a reason for hiding this comment

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

Scratch that, I don't see why this change should cause any import changes.

@johanbrandhorst johanbrandhorst merged commit 53e1aaa into improbable-eng:master Jul 10, 2021
@johanbrandhorst
Copy link
Contributor

Thanks for your contribution!

@bryanmcgrane
Copy link
Contributor Author

bryanmcgrane commented Jul 12, 2021

You're welcome!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
size/S Denotes a PR that changes 15-39 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants