You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@qpid.apache.org by "Alan Conway (JIRA)" <ji...@apache.org> on 2018/07/31 14:21:00 UTC
[jira] [Created] (PROTON-1904) [c] pn_transport_set_server() must
be called before pn_sasl()
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: dev-unsubscribe@qpid.apache.org
For additional commands, e-mail: dev-help@qpid.apache.org