klaatu01 opened a new pull request, #412:
URL: https://github.com/apache/pulsar-client-node/pull/412

   When using the new async token‐supplier API (`() => Promise<string>`), the 
JS `Authentication` object and its backing `ThreadSafeFunction` can be 
garbage‐collected if no live JS references remain. After the initial token 
expires, Pulsar’s broker will send a new auth challenge and the native code 
crashes when it tries to invoke a finalized TSFN.
   
   By persisting a reference to the authentication object in the client it 
prevents the V8 garbage collector from dropping the token-supplier.


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