jerrypeng opened a new pull request #10775: URL: https://github.com/apache/pulsar/pull/10775
### Motivation When the broker challenges a client for a new token / auth data, the client uses the pulsar-client-io thread to fetch a new token to respond to the broker. The token supplier is user supplied code. If the token supplier blocks unexpectedly, it can create a situation that the send timeout is not respected and the client basically halts and does't do any meaningful work. ### Modifications Run the authentication code in the client in a separate thread so that it isn't possible for user supplied code to block pulsar-client-io thread. Also fix a minor bug when returning an error message to the application when there is a send timeout. -- 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: [email protected]
