BewareMyPower opened a new pull request, #322:
URL: https://github.com/apache/pulsar-client-cpp/pull/322

   ### Motivation
   
   When there are multiple pending requests in the same `ClientConnection`, if 
one request failed with a retryable error, e.g. the `ServiceUnitNotReady` error 
when finding the owner broker of a topic, the socket will be closed in 
`checkServerError` and `close()` will be called subsequently in `handleRead` 
(`err` is `eof` or `operation_failed`). However, the default value of 1st 
parameter is `ResultConnectError` for `close`, which is not retryable.
   
   ### Modifications
   
   If the connection is disconnected by the client, pass `ResultDisconnected` 
to `close` and treat it as retryable.


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