equanz commented on issue #78: Error: Failed to send message: AlreadyClosed 
URL: 
https://github.com/apache/pulsar-client-node/issues/78#issuecomment-598552987
 
 
   As above, it seems that client has already been destructed when executing 
`send` after timeout ms. Therefore, it seems that the connection was closed by 
not Broker but client.
   
   Here is the destructor implementation in C++ client(Node.js client wraps C++ 
client)
   * 
https://github.com/apache/pulsar/blob/master/pulsar-client-cpp/lib/ClientImpl.cc#L128
     - 
https://github.com/apache/pulsar/blob/master/pulsar-client-cpp/lib/ClientImpl.cc#L541-L568
   
   I think you need to avoid client destruction before producing.
   (Therefore, in my example, `await` is put on `setTimeout`)

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


With regards,
Apache Git Services

Reply via email to