You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by "lhotari (via GitHub)" <gi...@apache.org> on 2023/02/02 19:12:26 UTC

[GitHub] [pulsar] lhotari commented on issue #19408: [Proxy] Close all other pooled connections in the ProxyConnection's connection pool after the connection has entered `ProxyConnectingToBroker` state

lhotari commented on issue #19408:
URL: https://github.com/apache/pulsar/issues/19408#issuecomment-1414234243

   As @michaeljmarshall mentioned, `ProxyConnectingToBroker` is a terminal state .
   In code, this prevents multiple connects on the same ProxyConnection:
   https://github.com/apache/pulsar/blob/fa6af432ef3d015b371121afd9324ba7f393994d/pulsar-proxy/src/main/java/org/apache/pulsar/proxy/server/ProxyConnection.java#L471-L472
   Going into either state:
   https://github.com/apache/pulsar/blob/fa6af432ef3d015b371121afd9324ba7f393994d/pulsar-proxy/src/main/java/org/apache/pulsar/proxy/server/ProxyConnection.java#L335-L379
   
   I'll close this issue since the connection pool will never have other connections in it when it goes to ProxyConnectingToBroker state.


-- 
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: commits-unsubscribe@pulsar.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org