BewareMyPower opened a new pull request #14834:
URL: https://github.com/apache/pulsar/pull/14834


   ### Motivation
   
   https://github.com/apache/pulsar/pull/14823 fixes the flaky
   `testConnectTimeout` but it's also a regression of
   https://github.com/apache/pulsar/pull/14587. Because when the fd limit
   is reached, the `connectionTimeoutTask_` won't be initialized with a
   non-null value. Calling `stop` method on it directly will cause
   segmentation fault.
   
   See
   
https://github.com/apache/pulsar/blob/0fe921f32cefe7648ca428cd9861f9163c69767d/pulsar-client-cpp/lib/ClientConnection.cc#L178-L185
   
   ### Modifications
   
   Add the null check for `connectionTimeoutTask_` in `ClientConnection::close`.


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