zzzming opened a new pull request #699:
URL: https://github.com/apache/pulsar-client-go/pull/699


   ### Motivation
   
   When the broker sets maxMessageSize more than 5MB, the go client can still 
get error `message size exceeds MaxMessageSize`. Upon some conditions, the 
broker is not communicate the max message size in 
CommandConnected.MaxMessageSize. This PR will allow the client to set a 
non-default (5MB) message size if the MaxMessageSize is not present from the 
control channel.
   
   ### Verifying this change
   
   This change is a trivial rework / code cleanup without any test coverage.
   This change is already covered by existing tests, such as *(please describe 
tests)*.
   
   
   ### Does this pull request potentially affect one of the following parts:
   
   *If `yes` was chosen, please highlight the changes*
   
     - Dependencies (does it add or upgrade a dependency): (no)
     - The public API: (yes)
     - The schema:  no 
     - The default values of configurations: (no)
     - The wire protocol: (no)
   
   It exposes a new configuration parameter to allow the client set the 
mexMessageSize
   ### Documentation
   
     - Does this pull request introduce a new feature? (no)
     - If yes, how is the feature documented? (not applicable)
     - If a feature is not applicable for documentation, explain why?
     - If a feature is not documented yet in this PR, please create a followup 
issue for adding the documentation
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to