Bug 735080

Summary: Cannot pass timeout to Connection.open()
Product: Red Hat Enterprise MRG Reporter: Raymond Mancy <rmancy>
Component: python-qpidAssignee: messaging-bugs <messaging-bugs>
Status: CLOSED DUPLICATE QA Contact: MRG Quality Engineering <mrgqe-bugs>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 2.0CC: ebaak, jross
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-02-27 10:45:02 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Raymond Mancy 2011-09-01 11:25:58 UTC
Description of problem:

Cannot specify a timeout when trying to open a connection

Version-Release number of selected component (if applicable):

python-qpid 0.10

How reproducible:

everytime

Steps to Reproduce:
1. Try opening a connection to a broker that does not exist 
  
Actual results:
Connection just hangs forever

Expected results:
The ability to specify a timeout

Additional info:

Looking through this qpid.messaging.endpoints code I noticed this on line 261.

  self._ewait(lambda: self._transport_connected and not self._unlinked())

It never seems to pass the timeout kwarg to _ewait that has the following signiture:

  def _ewait(self, predicate, timeout=None)

Comment 1 Justin Ross 2013-02-27 10:45:02 UTC

*** This bug has been marked as a duplicate of bug 908224 ***