qpid-proton mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rajith Attapattu <rajit...@gmail.com>
Subject Race condition in the TransportImpl in Proton-J
Date Tue, 25 Mar 2014 01:37:41 GMT
I encountered an issue in Proton J which I believe is a race condition.
If the input stream is read and passed into the transport, before the
sasl() method of TransportImpl.java is called then the _inputProcessor
defaults to FrameParser instead of being wrapped by the SASL frame parser.
This causes a Frame Parsing error as it expects '0' as per the regular
header but instead finds '3' which is the correct format if the process is
the SASL frame parser.

We should either test the incoming header and determine the right
clearly document that the transport needs to be ready (i.e the sasl()
method has to be called) before any incoming data is fed to the transport.


  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message