Skip to content

Conversation

PIRO-V
Copy link
Member

@PIRO-V PIRO-V commented Oct 16, 2025

This pull request ensures that the EventHub client link max size is set to 0.
This change prevents any default maximum link size from being applied, which is required for proper client behavior in our environment.

The client initiates communication by sending an Attach command to the server, including specific configuration settings. Upon receiving this command, the server processes the information, performs a minimum value calculation based on the provided parameters, and then generates a response that is sent back to the client.
Our change modifies the client-side request to explicitly send a value of 0 for the maximum message size. By doing this, the server interprets the value as “no limit” on the message size. When the server receives this request, it performs its minimum value calculation based on the requested settings. After completing this calculation, the server enforces its internal 20 MB limit on the message size and returns the resulting configuration back to the client.

@Copilot Copilot AI review requested due to automatic review settings October 16, 2025 05:49
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This pull request modifies the EventHub AMQP client to set the link maximum message size to 0, effectively removing any default size limit. This allows the server to apply its own internal 20 MB limit instead of having the client impose a potentially smaller limit.

Key changes:

  • Introduces a new constant LINK_MAX_MESSAGE_SIZE = 0
  • Updates the SendClient to use this new constant instead of MAX_FRAME_SIZE_BYTES for the default max message size

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
sdk/servicebus/azure-servicebus/azure/servicebus/_pyamqp/constants.py Adds new constant LINK_MAX_MESSAGE_SIZE = 0 to define unlimited message size
sdk/eventhub/azure-eventhub/azure/eventhub/_pyamqp/client.py Updates SendClient to import and use the new constant for default max message size

@PIRO-V
Copy link
Member Author

PIRO-V commented Oct 16, 2025

/azp run python - eventhub - tests

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@PIRO-V
Copy link
Member Author

PIRO-V commented Oct 16, 2025

/azp run python - servicebus - tests

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@PIRO-V
Copy link
Member Author

PIRO-V commented Oct 16, 2025

/azp run python - eventhub - tests

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@kashifkhan kashifkhan merged commit 1e53ab7 into Azure:main Oct 21, 2025
20 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants