Skip to content

Conversation

@owenpearson
Copy link
Member

@owenpearson owenpearson commented Oct 3, 2022

Resolves #377

TO3l8 specifies the requirement of the SDK to validate message size for outbound messages so the check for inbound messages is not needed. Moreover the existing implementation reads connection_details from the MESSAGE protocol message (which is always unset) and falls back to the library default, so doesn't work when an account has a configured max_message_size

@github-actions github-actions bot temporarily deployed to staging/pull/382/docs October 3, 2022 13:41 Inactive
@richiejarvis
Copy link

Approved by Richie

@owenpearson owenpearson force-pushed the max_message_size_fix branch from fd38d30 to 0e2b204 Compare October 3, 2022 14:23
@owenpearson owenpearson changed the title Max message size fix fix: remove inbound message size validation Oct 3, 2022
@github-actions github-actions bot temporarily deployed to staging/pull/382/docs October 3, 2022 14:24 Inactive
@owenpearson owenpearson changed the base branch from main to remove-deprecated-recover-behaviour-test October 3, 2022 14:24
@owenpearson owenpearson requested review from a user and QuintinWillison October 3, 2022 14:24
@owenpearson owenpearson marked this pull request as ready for review October 3, 2022 14:24
Copy link
Contributor

@QuintinWillison QuintinWillison left a comment

Choose a reason for hiding this comment

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

I see we're mostly removing code here.

What I can't see is why we're making this change. There is no opening comment on this pull request that explains to reviewers or those looking back in future why the change is being made. Even the single commit only contains a single line:

fix: remove inbound max_message_size check

which pretty much matches the pull request title:

fix: remove inbound message size validation

What I would like to see, one or more of:

  • Opening comment explaining why the change is being made (i.e. what is wrong in the current implementation)
  • A bug label assigned to ensure it makes it into the changelog as such
  • A link to a GitHub issue that is bug labelled, describing the problem with the current implementation
  • A link from this PR, or the linked GitHub issue, to other sources of information ... e.g. an " (internal)"-suffixed link to a Slack thread, perhaps

@owenpearson
Copy link
Member Author

Good point @QuintinWillison, I've updated the description now

Base automatically changed from remove-deprecated-recover-behaviour-test to main October 4, 2022 09:40
@owenpearson owenpearson merged commit 9bb9356 into main Oct 4, 2022
@owenpearson owenpearson deleted the max_message_size_fix branch October 4, 2022 09:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

Incorrect ProtocolMessage#connection_details object (overwrites original connection_details send on CONNECTED state)

4 participants