Alan Conway created PROTON-1904:
-----------------------------------
Summary: [c] pn_transport_set_server() must be called before
pn_sasl()
Key: PROTON-1904
URL: https://issues.apache.org/jira/browse/PROTON-1904
Project: Qpid Proton
Issue Type: Improvement
Components: proton-c
Affects Versions: proton-c-0.24.0
Reporter: Alan Conway
Assignee: Andrew Stitcher
PROTON-1884 shows that you must call pn_transport_set_server() *before* calling
pn_sasl(), otherwise SASL is configured in client mode, and is not updated to
server mode by the call to pn_transport_set_server().
This can easily lead to confusing bugs where the SASL handshake fails for no
obvious reason. Instead set_server() should update the SASL object (if it has
already been created) to use server mode.
When this issue is fixed, the example and API documentation updates of
PROTON-1884 can be restored to their original simpler form.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]