Re: Program hangs if wrong broker port is used

2016-08-15 Thread Timothy Bish
On 08/15/2016 09:53 AM, spamtrap wrote: On Mon, 15 Aug 2016 09:06:42 -0400, Timothy Bish wrote: Thanks for the reply. However the broker string is configured by the client so we cannot guarantee that it will be correct. Our thoughts is to set startupMaxReconnectAttempts

Re: Program hangs if wrong broker port is used

2016-08-15 Thread spamtrap
On Mon, 15 Aug 2016 09:06:42 -0400, Timothy Bish wrote: Thanks for the reply. However the broker string is configured by the client so we cannot guarantee that it will be correct. Our thoughts is to set startupMaxReconnectAttempts to >0. Will this stop it hanging? >You

Program hangs if wrong broker port is used

2016-08-15 Thread spamtrap
If the wrong port is given when trying to connect to a broker then we get a hanging problem. The stack backtrace is: #0 0x7f0ca3837a82 in pthread_cond_timedwait@@GLIBC_2.3.2 () from /usr/lib64/libpthread.so.0 (gdb) bt #0 0x7f0ca3837a82 in pthread_cond_timedwait@@GLIBC_2.3.2 () from