PROTON-877: workaround by forcing anonymous from the client
Project: http://git-wip-us.apache.org/repos/asf/qpid-proton/repo Commit: http://git-wip-us.apache.org/repos/asf/qpid-proton/commit/20cdff18 Tree: http://git-wip-us.apache.org/repos/asf/qpid-proton/tree/20cdff18 Diff: http://git-wip-us.apache.org/repos/asf/qpid-proton/diff/20cdff18 Branch: refs/heads/master Commit: 20cdff183f7ce2c79012d5c7028eefc19a23ae28 Parents: 9daab5f Author: Rafael Schloming <r...@alum.mit.edu> Authored: Thu May 7 04:27:26 2015 -0400 Committer: Rafael Schloming <r...@alum.mit.edu> Committed: Thu May 7 04:27:26 2015 -0400 ---------------------------------------------------------------------- proton-c/src/reactor/connection.c | 2 ++ proton-c/src/tests/reactor.c | 8 +++++--- 2 files changed, 7 insertions(+), 3 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/qpid-proton/blob/20cdff18/proton-c/src/reactor/connection.c ---------------------------------------------------------------------- diff --git a/proton-c/src/reactor/connection.c b/proton-c/src/reactor/connection.c index 4a57bfd..11789b3 100644 --- a/proton-c/src/reactor/connection.c +++ b/proton-c/src/reactor/connection.c @@ -101,6 +101,8 @@ void pni_handle_open(pn_reactor_t *reactor, pn_event_t *event) { } pn_transport_t *transport = pn_transport(); + pn_sasl_t *sasl = pn_sasl(transport); + pn_sasl_allowed_mechs(sasl, "ANONYMOUS"); pn_transport_bind(transport, conn); pn_decref(transport); } http://git-wip-us.apache.org/repos/asf/qpid-proton/blob/20cdff18/proton-c/src/tests/reactor.c ---------------------------------------------------------------------- diff --git a/proton-c/src/tests/reactor.c b/proton-c/src/tests/reactor.c index fe6c769..4d4b648 100644 --- a/proton-c/src/tests/reactor.c +++ b/proton-c/src/tests/reactor.c @@ -19,6 +19,7 @@ * */ +#include <proton/sasl.h> #include <proton/reactor.h> #include <proton/handlers.h> #include <proton/event.h> @@ -288,8 +289,8 @@ static void test_reactor_connect(void) { pn_reactor_connection(reactor, ch); pn_reactor_run(reactor); expect(srv->events, PN_CONNECTION_INIT, PN_CONNECTION_BOUND, - PN_CONNECTION_REMOTE_OPEN, - PN_CONNECTION_LOCAL_OPEN, PN_TRANSPORT, + PN_TRANSPORT, PN_CONNECTION_REMOTE_OPEN, + PN_TRANSPORT, PN_CONNECTION_LOCAL_OPEN, PN_TRANSPORT, PN_CONNECTION_REMOTE_CLOSE, PN_TRANSPORT_TAIL_CLOSED, PN_CONNECTION_LOCAL_CLOSE, PN_TRANSPORT, PN_TRANSPORT_HEAD_CLOSED, PN_TRANSPORT_CLOSED, @@ -298,7 +299,8 @@ static void test_reactor_connect(void) { pn_decref(sh); expect(cli->events, PN_CONNECTION_INIT, PN_CONNECTION_LOCAL_OPEN, PN_CONNECTION_BOUND, - PN_CONNECTION_REMOTE_OPEN, PN_CONNECTION_LOCAL_CLOSE, + PN_TRANSPORT, PN_CONNECTION_REMOTE_OPEN, + PN_CONNECTION_LOCAL_CLOSE, PN_TRANSPORT, PN_TRANSPORT_HEAD_CLOSED, PN_CONNECTION_REMOTE_CLOSE, PN_TRANSPORT_TAIL_CLOSED, PN_TRANSPORT_CLOSED, PN_CONNECTION_UNBOUND, --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@qpid.apache.org For additional commands, e-mail: commits-h...@qpid.apache.org