jbertram commented on PR #5207:
URL: 
https://github.com/apache/activemq-artemis/pull/5207#issuecomment-2334049163

   > In case of exception into the processing of 
"protocolManager.validateUser()" (due to SecurityException for example), a 
ExceptionResponse is provided but "protocolManager.addConnection()" is not 
called and then context is not initialized and then the state is not computed.
   The ExceptionResponse generated in case of a ConnectionInfo Command then 
generates a call to "delayedStop(2000, cause.getMessage(), cause)".
   
   This is all expected behavior. The `delayedStop` is there to ensure that 
after the `ExceptionResponse` is returned to the client that the server-side 
resources are cleaned up (e.g. a socket isn't left half-closed or something).
   
   > During that time (2000ms), the connection can still receive and handle 
other commands, but as the state is not build, the commands may also fail.
   
   This is the mysterious part. If the client receives an `ExceptionResponse` 
when it sends a `ConnectionInfo` command then why does it continue working with 
that connection?


-- 
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: gitbox-unsubscr...@activemq.apache.org

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


---------------------------------------------------------------------
To unsubscribe, e-mail: gitbox-unsubscr...@activemq.apache.org
For additional commands, e-mail: gitbox-h...@activemq.apache.org
For further information, visit: https://activemq.apache.org/contact


Reply via email to