qpid-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF subversion and git services (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (QPID-5852) [Python client] connection.opened() returns True after unsuccessful connection
Date Thu, 24 Jul 2014 20:20:40 GMT

    [ https://issues.apache.org/jira/browse/QPID-5852?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14073594#comment-14073594
] 

ASF subversion and git services commented on QPID-5852:
-------------------------------------------------------

Commit 1613270 from [~pmoravec] in branch 'qpid/trunk'
[ https://svn.apache.org/r1613270 ]

[QPID-5852]: connection.opened() returns True after unsuccessful connection (fixing regression
infested by previous commit)

> [Python client]  connection.opened() returns True after unsuccessful connection 
> --------------------------------------------------------------------------------
>
>                 Key: QPID-5852
>                 URL: https://issues.apache.org/jira/browse/QPID-5852
>             Project: Qpid
>          Issue Type: Bug
>          Components: Python Client
>    Affects Versions: 0.28
>            Reporter: Pavel Moravec
>            Assignee: Pavel Moravec
>            Priority: Trivial
>             Fix For: 0.29
>
>
> Description of problem:
> When python connection fails to connect to a broker, connection status is opened == True.
After unsuccessfull connection, the state of Connection object should be False.
> How reproducible:
> 100%
> Steps to Reproduce:
> 1. create a connection to nonexisting broker in python
> 2. check return value od connection.opened()
> (or see below reproducer)
> Actual results:
> True
> Expected results:
> False
> Reproducer script:
> from qpid.messaging import *
> parms = {}
> try:
>   connection = Connection("invalid-hostname", **parms)
>   connection.open()
> except ConnectionError,e:
>   print e
> print "connection.opened=%s" %(connection.opened())



--
This message was sent by Atlassian JIRA
(v6.2#6252)

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


Mime
View raw message