[
https://issues.apache.org/jira/browse/QPID-7949?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Gerald Guillaume updated QPID-7949:
-----------------------------------
Summary: [c++ client]msg::Connection.open() never return when FQDN url is
provided and broker not started (was: msg::Connection.open() never return when
FQDN url is provided and broker not started)
> [c++ client]msg::Connection.open() never return when FQDN url is provided and
> broker not started
> ------------------------------------------------------------------------------------------------
>
> Key: QPID-7949
> URL: https://issues.apache.org/jira/browse/QPID-7949
> Project: Qpid
> Issue Type: Bug
> Components: C++ Client
> Affects Versions: qpid-cpp-1.36.0
> Environment: Debian Jessie 7 (64 bits)
> We are using the debian package provided here
> https://launchpad.net/~qpid/+archive/ubuntu/testing/+packages
> Publishing details
> Published on 2017-05-19
> Changelog
> qpid-cpp (1.36.0-1qpid+xenial1) xenial; urgency=medium
> Reporter: Gerald Guillaume
>
> h2. Test 1
> The conditions are :
> * the broker is not started.
> * the IP address is set in the url.
> * the IP is reachable by ping
> Output : the open() function exit and isOpen() returns false.
> Result : {color:#8eb021}=> Expected behavior{color}
> source code:
> {code}
> msg::Connection *connection = new
> msg::Connection("amqp:tcp:166.99.224.88:5672", "{protocol: amqp1.0}");
> connection->setOption("transport", "tcp");
> connection->setOption("reconnect", false);
> connection->open();
> printf("connection %s to AMQP broker \n",(connection->isOpen()) ? "OK" :
> "KO");
> {code}
> logs are
> {code}
> 2017-10-03 08:54:00 [Messaging] debug Protocol defaults:
> 2017-10-03 08:57:31 [Messaging] debug Trying versions amqp1.0
> 2017-10-03 08:57:31 [Messaging] debug Driver started
> 2017-10-03 08:57:31 [Messaging] debug tcp:166.99.224.88:5672 Connecting ...
> 2017-10-03 08:57:31 [Client] debug Set TCP_NODELAY
> 2017-10-03 08:57:31 [Messaging] debug Failed to connect: Connection refused
> connection KO to AMQP broker
> {code}
> h2. Test 2
> The conditions are :
> * the broker is not started.
> * the FQDN address is set in the url.
> * the FQDN is reachable by ping
> Output : the open() function never exit, and EpollPoller.cpp:357 complains
> "No such file or directory".
> Result : {color:#d04437}=> Failed{color}
> {code}
> ping <FQDN>
> PING <FQDN> (166.99.224.88) 56(84) bytes of data.
> 64 bytes from 166.99.224.88: icmp_seq=1 ttl=128 time=2.01 ms
> 64 bytes from 166.99.224.88: icmp_seq=2 ttl=128 time=1.19 ms
> {code}
> source code:
> {code}
> msg::Connection *connection = new msg::Connection("amqp:tcp:<FQDN>:5672",
> "{protocol: amqp1.0}");
> connection->setOption("transport", "tcp");
> connection->setOption("reconnect", false);
> connection->open();
> printf("connection %s to AMQP broker \n",(connection->isOpen()) ? "OK" :
> "KO");
> {code}
> logs are
> {code}
> 2017-10-03 08:38:04 [Messaging] debug Protocol defaults:
> 2017-10-03 08:38:05 [Messaging] debug Trying versions amqp1.0
> 2017-10-03 08:38:05 [Messaging] debug Driver started
> 2017-10-03 08:38:05 [Messaging] debug tcp:<FQDN brokername>:5672 Connecting
> ...
> 2017-10-03 08:50:49 [Client] debug Set TCP_NODELAY
> 2017-10-03 08:50:49 [System] debug Ignored socket connect error: Connection
> refused
> 2017-10-03 08:50:49 [System] debug Exception constructed: Network is
> unreachable: <FQDN>:5672
> (/usr/src/packages/BUILD/src/qpid/sys/posix/BSDSocket.cpp:161)
> 2017-10-03 08:50:49 [System] debug Ignored socket connect exception: Network
> is unreachable: <FQDN>:5672
> (/usr/src/packages/BUILD/src/qpid/sys/posix/BSDSocket.cpp:161)
> 2017-10-03 08:50:49 [System] debug Exception constructed: No such file or
> directory (/usr/src/packages/BUILD/src/qpid/sys/epoll/EpollPoller.cpp:357)
> {code}
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]