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


   Fixes #240 
   
   ### Motivation
   
   Issue #240: Add client-side check for max message size
   
   ### Modifications
   
   1. When creating a connection, try to get maxMessageSize from handshake
   response command. If it's not set, then use the default maxMessageSize
   value defined in the client side.
   
   2. When sending a message, check whether the size of payload exceeds
   maxMessageSize. If so, return error immediately without adding this
   meesage into sending queue.
   
   3. To implement these, I made some tiny modifications in Connection
   interface and added a field in its implementation struct.
   


----------------------------------------------------------------
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.

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Reply via email to