You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@qpid.apache.org by Nelson Rodrigues <Ne...@coollink.pt> on 2015/03/23 16:28:16 UTC

SSL connection close()

Hi,

When I do a connection with SSL and then I try to close the connection, the program hang while doing close().

If I do a connection without SSL close() works fine!

There is any problem with Qpid connection API and SSL?


Thanks,
Nelson


Nelson Rodrigues

E: NelsonRodrigues@coollink.pt<ma...@coollink.pt>

Avenida da Boavista, 1015 5º Andar Sala 503
4100-128 Porto


[cid:2BC383D6-EFA6-42D4-8580-62110DFE51A8@ljc.local]


A informação contida nesta mensagem ou qualquer um dos seus anexos pode ser considerada confidencial, e para uso exclusivo do(s) seu(s) destinatário(s). Se o receptor desta mensagem não for o destinatário indicado, fica expressamente proibido de copiar ou endereçar a mensagem a terceiros, sem o consentimento do remetente. Em tal situação, o receptor deverá destruir a presente mensagem e por gentileza informar o emissor de tal facto.

This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and destroy this e-mail. Any unauthorized copying, disclosure or distribution of the material in this e-mail is strictly forbidden.


RE: SSL connection close()

Posted by Nelson Rodrigues <Ne...@coollink.pt>.
Hi Cliff,

I send the most basic example.
A Sender and  a Receiver.
You only need to change this line .

string brokerUrl("{username}}/{password}}{brokername}:{port}");

to match your definitions.

Note: When sending messages the "Sender" blocks for a while and then works fine, and then blocks, .... is this a normal behavior ?

Many Thanks,
Nelson



-----Mensagem original-----
De: Cliff Jansen [mailto:cliffjansen@gmail.com] 
Enviada: segunda-feira, 23 de Março de 2015 18:37
Para: users@qpid.apache.org
Assunto: Re: SSL connection close()

Hi Nelson,

The spout.cpp and drain.cpp messaging examples in

  cpp/examples/messaging

work fine for me without hanging on Windows (using either AMQP1.0 or
AMQP0-10 protocols) when talking to a Linux C++ broker.  (Windows 7, VS2008).

Can you confirm those run for you without hanging?  If those run OK, perhaps you can post a small reproducer program.

Thanks.

Cliff

On Mon, Mar 23, 2015 at 9:34 AM, Nelson Rodrigues <Ne...@coollink.pt> wrote:
> To describe  the total scenario:
>
> The broker  is in Linux (cent OS 7)
>
> But is the cliente that stays hang.
>
> Many Thanks,
> Nelson
>
> -----Mensagem original-----
> De: Nelson Rodrigues [mailto:Nelson.Rodrigues@coollink.pt]
> Enviada: segunda-feira, 23 de Março de 2015 16:25
> Para: users@qpid.apache.org
> Assunto: RE: SSL connection close()
>
> Hi,
>
> I'm using messaging API "client side"
>
> OS (Windows 7)
> Qpid version (0.30) (messaging API)
> C++
>
> Thanks,
> Nelson
>
> -----Mensagem original-----
> De: Rob Godfrey [mailto:rob.j.godfrey@gmail.com]
> Enviada: segunda-feira, 23 de Março de 2015 16:07
> Para: users@qpid.apache.org
> Assunto: Re: SSL connection close()
>
> Hi Nelson,
>
> can you give a bit more information about which part of Qpid you are 
> using?  Broker or Client (or Proton or Dispatch)?  Which language 
> (C++, Java, etc.), version (e.g. 0.32) and operating system (Linux, 
> Windows,
> etc.) so that we can better understand the issue you are facing?
>
> Thanks.
> Rob
>
> On 23 March 2015 at 16:28, Nelson Rodrigues 
> <Ne...@coollink.pt>
> wrote:
>
>>  Hi,
>>
>>
>>
>> When I do a connection with SSL and then I try to close the 
>> connection, the program hang while doing close().
>>
>>
>>
>> If I do a connection without SSL close() works fine!
>>
>>
>>
>> There is any problem with Qpid connection API and SSL?
>>
>>
>>
>>
>>
>> Thanks,
>>
>> Nelson
>>
>>
>>
>>
>>
>> *Nelson Rodrigues*
>>
>>
>>
>> *E*: *NelsonRodrigues@coollink.pt <Ne...@coollink.pt>*
>>
>>
>>
>> *Avenida da Boavista, 1015 5º Andar Sala 503*
>>
>> *4100-128 Porto*
>>
>>
>>
>>
>> [image: cid:2BC383D6-EFA6-42D4-8580-62110DFE51A8@ljc.local]
>>
>>
>>
>> A informação contida nesta mensagem ou qualquer um dos seus anexos 
>> pode ser considerada confidencial, e para uso exclusivo do(s) seu(s) 
>> destinatário(s). Se o receptor desta mensagem não for o destinatário 
>> indicado, fica expressamente proibido de copiar ou endereçar a 
>> mensagem a terceiros, sem o consentimento do remetente. Em tal 
>> situação, o receptor deverá destruir a presente mensagem e por 
>> gentileza informar o emissor de tal facto.
>>
>>
>> This e-mail may contain confidential and/or privileged information. 
>> If you are not the intended recipient (or have received this e-mail 
>> in
>> error) please notify the sender immediately and destroy this e-mail.
>> Any unauthorized copying, disclosure or distribution of the material 
>> in this e-mail is strictly forbidden.
>>
>>
>>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@qpid.apache.org For additional commands, e-mail: users-help@qpid.apache.org


Re: SSL connection close()

Posted by Cliff Jansen <cl...@gmail.com>.
Hi Nelson,

The spout.cpp and drain.cpp messaging examples in

  cpp/examples/messaging

work fine for me without hanging on Windows (using either AMQP1.0 or
AMQP0-10 protocols) when talking to a Linux C++ broker.  (Windows 7,
VS2008).

Can you confirm those run for you without hanging?  If those run OK,
perhaps you can post a small reproducer program.

Thanks.

Cliff

On Mon, Mar 23, 2015 at 9:34 AM, Nelson Rodrigues
<Ne...@coollink.pt> wrote:
> To describe  the total scenario:
>
> The broker  is in Linux (cent OS 7)
>
> But is the cliente that stays hang.
>
> Many Thanks,
> Nelson
>
> -----Mensagem original-----
> De: Nelson Rodrigues [mailto:Nelson.Rodrigues@coollink.pt]
> Enviada: segunda-feira, 23 de Março de 2015 16:25
> Para: users@qpid.apache.org
> Assunto: RE: SSL connection close()
>
> Hi,
>
> I'm using messaging API "client side"
>
> OS (Windows 7)
> Qpid version (0.30) (messaging API)
> C++
>
> Thanks,
> Nelson
>
> -----Mensagem original-----
> De: Rob Godfrey [mailto:rob.j.godfrey@gmail.com]
> Enviada: segunda-feira, 23 de Março de 2015 16:07
> Para: users@qpid.apache.org
> Assunto: Re: SSL connection close()
>
> Hi Nelson,
>
> can you give a bit more information about which part of Qpid you are using?  Broker or Client (or Proton or Dispatch)?  Which language (C++, Java, etc.), version (e.g. 0.32) and operating system (Linux, Windows,
> etc.) so that we can better understand the issue you are facing?
>
> Thanks.
> Rob
>
> On 23 March 2015 at 16:28, Nelson Rodrigues <Ne...@coollink.pt>
> wrote:
>
>>  Hi,
>>
>>
>>
>> When I do a connection with SSL and then I try to close the
>> connection, the program hang while doing close().
>>
>>
>>
>> If I do a connection without SSL close() works fine!
>>
>>
>>
>> There is any problem with Qpid connection API and SSL?
>>
>>
>>
>>
>>
>> Thanks,
>>
>> Nelson
>>
>>
>>
>>
>>
>> *Nelson Rodrigues*
>>
>>
>>
>> *E*: *NelsonRodrigues@coollink.pt <Ne...@coollink.pt>*
>>
>>
>>
>> *Avenida da Boavista, 1015 5º Andar Sala 503*
>>
>> *4100-128 Porto*
>>
>>
>>
>>
>> [image: cid:2BC383D6-EFA6-42D4-8580-62110DFE51A8@ljc.local]
>>
>>
>>
>> A informação contida nesta mensagem ou qualquer um dos seus anexos
>> pode ser considerada confidencial, e para uso exclusivo do(s) seu(s)
>> destinatário(s). Se o receptor desta mensagem não for o destinatário
>> indicado, fica expressamente proibido de copiar ou endereçar a
>> mensagem a terceiros, sem o consentimento do remetente. Em tal
>> situação, o receptor deverá destruir a presente mensagem e por
>> gentileza informar o emissor de tal facto.
>>
>>
>> This e-mail may contain confidential and/or privileged information. If
>> you are not the intended recipient (or have received this e-mail in
>> error) please notify the sender immediately and destroy this e-mail.
>> Any unauthorized copying, disclosure or distribution of the material
>> in this e-mail is strictly forbidden.
>>
>>
>>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@qpid.apache.org
For additional commands, e-mail: users-help@qpid.apache.org


RE: SSL connection close()

Posted by Nelson Rodrigues <Ne...@coollink.pt>.
To describe  the total scenario:

The broker  is in Linux (cent OS 7)

But is the cliente that stays hang.

Many Thanks,
Nelson

-----Mensagem original-----
De: Nelson Rodrigues [mailto:Nelson.Rodrigues@coollink.pt] 
Enviada: segunda-feira, 23 de Março de 2015 16:25
Para: users@qpid.apache.org
Assunto: RE: SSL connection close()

Hi,

I'm using messaging API "client side"

OS (Windows 7)
Qpid version (0.30) (messaging API)
C++

Thanks,
Nelson

-----Mensagem original-----
De: Rob Godfrey [mailto:rob.j.godfrey@gmail.com]
Enviada: segunda-feira, 23 de Março de 2015 16:07
Para: users@qpid.apache.org
Assunto: Re: SSL connection close()

Hi Nelson,

can you give a bit more information about which part of Qpid you are using?  Broker or Client (or Proton or Dispatch)?  Which language (C++, Java, etc.), version (e.g. 0.32) and operating system (Linux, Windows,
etc.) so that we can better understand the issue you are facing?

Thanks.
Rob

On 23 March 2015 at 16:28, Nelson Rodrigues <Ne...@coollink.pt>
wrote:

>  Hi,
>
>
>
> When I do a connection with SSL and then I try to close the 
> connection, the program hang while doing close().
>
>
>
> If I do a connection without SSL close() works fine!
>
>
>
> There is any problem with Qpid connection API and SSL?
>
>
>
>
>
> Thanks,
>
> Nelson
>
>
>
>
>
> *Nelson Rodrigues*
>
>
>
> *E*: *NelsonRodrigues@coollink.pt <Ne...@coollink.pt>*
>
>
>
> *Avenida da Boavista, 1015 5º Andar Sala 503*
>
> *4100-128 Porto*
>
>
>
>
> [image: cid:2BC383D6-EFA6-42D4-8580-62110DFE51A8@ljc.local]
>
>
>
> A informação contida nesta mensagem ou qualquer um dos seus anexos 
> pode ser considerada confidencial, e para uso exclusivo do(s) seu(s) 
> destinatário(s). Se o receptor desta mensagem não for o destinatário 
> indicado, fica expressamente proibido de copiar ou endereçar a 
> mensagem a terceiros, sem o consentimento do remetente. Em tal 
> situação, o receptor deverá destruir a presente mensagem e por 
> gentileza informar o emissor de tal facto.
>
>
> This e-mail may contain confidential and/or privileged information. If 
> you are not the intended recipient (or have received this e-mail in
> error) please notify the sender immediately and destroy this e-mail. 
> Any unauthorized copying, disclosure or distribution of the material 
> in this e-mail is strictly forbidden.
>
>
>

RE: SSL connection close()

Posted by Nelson Rodrigues <Ne...@coollink.pt>.
Hi,

I'm using messaging API "client side"

OS (Windows 7)
Qpid version (0.30) (messaging API)
C++

Thanks,
Nelson

-----Mensagem original-----
De: Rob Godfrey [mailto:rob.j.godfrey@gmail.com] 
Enviada: segunda-feira, 23 de Março de 2015 16:07
Para: users@qpid.apache.org
Assunto: Re: SSL connection close()

Hi Nelson,

can you give a bit more information about which part of Qpid you are using?  Broker or Client (or Proton or Dispatch)?  Which language (C++, Java, etc.), version (e.g. 0.32) and operating system (Linux, Windows,
etc.) so that we can better understand the issue you are facing?

Thanks.
Rob

On 23 March 2015 at 16:28, Nelson Rodrigues <Ne...@coollink.pt>
wrote:

>  Hi,
>
>
>
> When I do a connection with SSL and then I try to close the 
> connection, the program hang while doing close().
>
>
>
> If I do a connection without SSL close() works fine!
>
>
>
> There is any problem with Qpid connection API and SSL?
>
>
>
>
>
> Thanks,
>
> Nelson
>
>
>
>
>
> *Nelson Rodrigues*
>
>
>
> *E*: *NelsonRodrigues@coollink.pt <Ne...@coollink.pt>*
>
>
>
> *Avenida da Boavista, 1015 5º Andar Sala 503*
>
> *4100-128 Porto*
>
>
>
>
> [image: cid:2BC383D6-EFA6-42D4-8580-62110DFE51A8@ljc.local]
>
>
>
> A informação contida nesta mensagem ou qualquer um dos seus anexos 
> pode ser considerada confidencial, e para uso exclusivo do(s) seu(s) 
> destinatário(s). Se o receptor desta mensagem não for o destinatário 
> indicado, fica expressamente proibido de copiar ou endereçar a 
> mensagem a terceiros, sem o consentimento do remetente. Em tal 
> situação, o receptor deverá destruir a presente mensagem e por 
> gentileza informar o emissor de tal facto.
>
>
> This e-mail may contain confidential and/or privileged information. If 
> you are not the intended recipient (or have received this e-mail in 
> error) please notify the sender immediately and destroy this e-mail. 
> Any unauthorized copying, disclosure or distribution of the material 
> in this e-mail is strictly forbidden.
>
>
>

Re: SSL connection close()

Posted by Rob Godfrey <ro...@gmail.com>.
Hi Nelson,

can you give a bit more information about which part of Qpid you are
using?  Broker or Client (or Proton or Dispatch)?  Which language (C++,
Java, etc.), version (e.g. 0.32) and operating system (Linux, Windows,
etc.) so that we can better understand the issue you are facing?

Thanks.
Rob

On 23 March 2015 at 16:28, Nelson Rodrigues <Ne...@coollink.pt>
wrote:

>  Hi,
>
>
>
> When I do a connection with SSL and then I try to close the connection,
> the program hang while doing close().
>
>
>
> If I do a connection without SSL close() works fine!
>
>
>
> There is any problem with Qpid connection API and SSL?
>
>
>
>
>
> Thanks,
>
> Nelson
>
>
>
>
>
> *Nelson Rodrigues*
>
>
>
> *E*: *NelsonRodrigues@coollink.pt <Ne...@coollink.pt>*
>
>
>
> *Avenida da Boavista, 1015 5º Andar Sala 503*
>
> *4100-128 Porto*
>
>
>
>
> [image: cid:2BC383D6-EFA6-42D4-8580-62110DFE51A8@ljc.local]
>
>
>
> A informação contida nesta mensagem ou qualquer um dos seus anexos pode
> ser considerada confidencial, e para uso exclusivo do(s) seu(s)
> destinatário(s). Se o receptor desta mensagem não for o destinatário
> indicado, fica expressamente proibido de copiar ou endereçar a mensagem a
> terceiros, sem o consentimento do remetente. Em tal situação, o receptor
> deverá destruir a presente mensagem e por gentileza informar o emissor de
> tal facto.
>
>
> This e-mail may contain confidential and/or privileged information. If you
> are not the intended recipient (or have received this e-mail in error)
> please notify the sender immediately and destroy this e-mail. Any
> unauthorized copying, disclosure or distribution of the material in this
> e-mail is strictly forbidden.
>
>
>