vert-x3 / vertx-proton

Apache License 2.0
26 stars 26 forks source link

connection openHandler doesnt fire if server pipelines Open frame with SASL completion #125

Closed gemmellr closed 2 years ago

gemmellr commented 2 years ago

If a server pre-emptively sends the AMQP header and an Open frame immediately while it completes the SASL process, and pipelines them such that they are processed in the same read as the SASL outcome is, this prevents a client connections openHandler from being fired correctly once the connectHandler allows it to be set. This is because the connectHandler ends up being fired too late. There is no problem if the SASL outcome is processed in isolation of the Open (even if still pre-emptive) as typically occurs.