summaryrefslogtreecommitdiff
path: root/python
Commit message (Collapse)AuthorAgeFilesLines
* NO-JIRA: update version numbers/datesRobert Gemmell2015-06-251-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/branches/qpid-cpp-0.34-rc/qpid@1687472 13f79535-47bb-0310-9956-ffa450edef68
* QPID-6326 Don't automatically search for exchanges and queues with each requestErnest Allen2015-06-122-18/+35
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1685116 13f79535-47bb-0310-9956-ffa450edef68
* QPID-6297: Python client should reconnect after network glitchErnest Allen2015-06-101-1/+3
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1684716 13f79535-47bb-0310-9956-ffa450edef68
* QPID-6567: [Python Client] Centralise responsibilities for ↵Keith Wall2015-06-091-4/+5
| | | | | | flow_control_wait_condition lock used on the 08..091 path git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1684350 13f79535-47bb-0310-9956-ffa450edef68
* QPID-6567: [Python Client 0-8..0-91] ensure client won't send messages ↵Alex Rudyy2015-06-052-11/+13
| | | | | | after/before sending flow-ok on suspending/resuming respectively. work by Lorenz Quack <quack.lorenz@gmail.com> git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1683751 13f79535-47bb-0310-9956-ffa450edef68
* QPID-6567: [Python Client 0-8..0-91] send flow-ok on receiving flow command. ↵Alex Rudyy2015-06-051-0/+8
| | | | | | work by Lorenz Quack <quack.lorenz@gmail.com> git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1683708 13f79535-47bb-0310-9956-ffa450edef68
* QPID-6567: [Python Client 0-8..0-91] Support producer side flow control in ↵Keith Wall2015-06-033-8/+39
| | | | | | | | | | the Python client * Like the Qpid Java Client, this implementation does not send channel.flow-ok. Work by Lorenz Quack <quack.lorenz@gmail.com> git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1683432 13f79535-47bb-0310-9956-ffa450edef68
* NO-JIRA: Add into ant script for running python tests a condition to wait ↵Alex Rudyy2015-04-201-3/+23
| | | | | | for a READY entry in Java Broker log file git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1674911 13f79535-47bb-0310-9956-ffa450edef68
* QPID-6474: [Python Client] 08..09 Prevent Client.close ending in exception ↵Keith Wall2015-04-061-0/+1
| | | | | | if start has not been called git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1671499 13f79535-47bb-0310-9956-ffa450edef68
* QPID-6475: [Python Client] 08..09 Send connection.close before closing socketKeith Wall2015-04-032-5/+12
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1671100 13f79535-47bb-0310-9956-ffa450edef68
* QPID-6474: [Python Client] Prevent client connection thread leaks on the ↵Keith Wall2015-04-033-8/+42
| | | | | | 08..09 code path git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1671094 13f79535-47bb-0310-9956-ffa450edef68
* QPID-6473: [Python Client] Replace old style exception syntax on a number of ↵Keith Wall2015-04-031-10/+10
| | | | | | paths through 08..0-9 code git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1671072 13f79535-47bb-0310-9956-ffa450edef68
* QPID-6445: Revert the error checking code to *not* close, as this was ↵Ernest Allen2015-03-131-4/+0
| | | | | | causing the recursion problem git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1666447 13f79535-47bb-0310-9956-ffa450edef68
* QPID-6405: Dont't use a Python Conditional Expression to maintain ↵Keith Wall2015-03-011-1/+2
| | | | | | compatibility with Python 2.4 git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1663039 13f79535-47bb-0310-9956-ffa450edef68
* QPID-6405: [Python Client] Fallback if pkg_resources is not available.Keith Wall2015-02-231-1/+2
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1661647 13f79535-47bb-0310-9956-ffa450edef68
* QPID-6405: [Python Client] Retreive package version number from ↵Keith Wall2015-02-223-12/+25
| | | | | | pkg_resources and report to the peer at connection time using version/qpid.client_version connection property git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1661459 13f79535-47bb-0310-9956-ffa450edef68
* QPID-5799: provide notification callback for received messages.Ken Giusti2015-02-113-1/+45
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1658984 13f79535-47bb-0310-9956-ffa450edef68
* [QPID-5823]: Python client should create a node with name starting '\#', ↵Pavel Moravec2015-02-011-2/+5
| | | | | | allow customization of autoDel and excl flags git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1656278 13f79535-47bb-0310-9956-ffa450edef68
* QPID-6197: Allow unicode values in connection response fieldErnest Allen2015-01-122-0/+6
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1651102 13f79535-47bb-0310-9956-ffa450edef68
* QPID-6116: [Python Client 0-8..0-9] Fix spelling error in new method nameKeith Wall2014-10-035-5/+5
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1629178 13f79535-47bb-0310-9956-ffa450edef68
* QPID-6116: [Python Client 0-8..0-9] Allow fallback to anon/external sasl if ↵Keith Wall2014-10-0111-24/+35
| | | | | | no credentials are provided git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1628687 13f79535-47bb-0310-9956-ffa450edef68
* NO-JIRA: fix syntax for older python versions (and consistent with style ↵Gordon Sim2014-09-301-6/+7
| | | | | | used in other modules in this package) git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1628423 13f79535-47bb-0310-9956-ffa450edef68
* QPID-6116: ensure new packages are installedGordon Sim2014-09-261-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1627808 13f79535-47bb-0310-9956-ffa450edef68
* QPID-6116: [Python Client 08..091] Add ability to negotiate SASL mechanism ↵Keith Wall2014-09-2519-6/+604
| | | | | | and add pure python implementations for SCRAM/CRAM/PLAIN mechanisms git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1627554 13f79535-47bb-0310-9956-ffa450edef68
* QPID-6117: [Python Client 0-8..0-9] Ignore socket.error ENOTCONN when trying ↵Keith Wall2014-09-251-3/+10
| | | | | | to shutdown a socket to prevent spurious exception when socket closed by peer git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1627553 13f79535-47bb-0310-9956-ffa450edef68
* QPID-6109: don't require password to be specified to allow PLAINGordon Sim2014-09-191-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1626249 13f79535-47bb-0310-9956-ffa450edef68
* QPID-6110: Add manifest includes for license and notice filesJustin Ross2014-09-191-0/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1626184 13f79535-47bb-0310-9956-ffa450edef68
* QPID-6081, QPID-6082: [Python Client Tests] Add python tests for verifying ↵Keith Wall2014-09-121-4/+12
| | | | | | the receipt of large messages occupying more than one frame (08-091) git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1624545 13f79535-47bb-0310-9956-ffa450edef68
* QPID-6086: [Python Client] 08..091 Add support for SSL and client cert ↵Keith Wall2014-09-062-3/+24
| | | | | | authentication git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1622953 13f79535-47bb-0310-9956-ffa450edef68
* QPID-6085: [Python client] 08..091 implement sending/receiving of additional ↵Keith Wall2014-09-062-16/+255
| | | | | | property types git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1622952 13f79535-47bb-0310-9956-ffa450edef68
* QPID-6084: [Python Client] Guard use of sys.argv when constructing ↵Keith Wall2014-09-061-1/+1
| | | | | | connection properties git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1622951 13f79535-47bb-0310-9956-ffa450edef68
* QPID-6083: [Python Client] utilise pathname2url when constructing spec file ↵Keith Wall2014-09-061-1/+2
| | | | | | location on older python versions git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1622950 13f79535-47bb-0310-9956-ffa450edef68
* QPID-6082: [Python Client] 08..091 Explicitly set incoming queue to guard ↵Keith Wall2014-09-061-0/+8
| | | | | | method interleaving git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1622949 13f79535-47bb-0310-9956-ffa450edef68
* QPID-6081: [Python Client] 08..091 Ensure that multiframe bodies are ↵Keith Wall2014-09-061-3/+3
| | | | | | received correctly git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1622948 13f79535-47bb-0310-9956-ffa450edef68
* NO-JIRA: Fix qpid/python/qpid/messaging/driver.py to work on python 2.4.Alan Conway2014-09-041-2/+3
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1622559 13f79535-47bb-0310-9956-ffa450edef68
* QPID-5975: HA extra/missing messages when running qpid-txtest2 in a loop ↵Alan Conway2014-08-283-4/+22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | with failover. This is partly not-a-bug, there is a client error handling issue that has been corrected. qpid-txtest2 initializes a queue with messages at the start and drains the queues at the end. These operations are *not transactional*. Therefore duplicates are expected if there is a failover during initialization or draining. When duplicates were observed, there was indeed a failover at one of these times. Making these operations transactional is not enough to pass, now we see the test fail with "no messages to fetch". This is explained as follows: If there is a failover during a transaction, TransactionAborted is raised. The client assumes the transaction was rolled back and re-plays it. However, if the failover occurs at a critical point *after* the client has sent commit but *before* it has received a response, then the the client *does not know* whether the transaction was committed or rolled-back on the new primary. Re-playing in this case can duplicate the transaction. Each transaction moves messages from one queue to another so as long as transactions are atomic the total number of messages will not change. However, if transactions are duplicated, a transactional session may try to move more messages than exist on the queue, hence "no messages to fetch". For example if thread 1 moves N messages from q1 to q2, and thread 2 tries to move N+M messages back, then thread 2 will fail. This problem has been corrected as follows: C++ and python clients now raise the following exceptions: - TransactionAborted: The transaction has definitely been rolled back due to a connection failure before commit or a broker error (e.g. a store error) during commit. It can safely be replayed. - TransactionUnknown: The transaction outcome is unknown because the connection failed at the critical time. There's no simple automatic way to know what happened without examining the state of the broker queues. Unfortunately With this fix qpid-txtest2 is no longer useful test for TX failover because it regularly raises TransactionUnknown and there's not much we can do with that. A better test of TX atomicity with failover is to run a pair of qpid-send/qpid-receive with fail-over and verify that the number of enqueues/dequeues and message depth are a multiple of the transaction size. See the JIRA for such a test. (Note these test also sometimes raise TransactionUnknown but it doesn't matter since all we are checking is that messages go on and off the queues in multiple of the TX size.) ) Note: the original bug also reported seeing missing messages from qpid-txtest2. I don't have a good explanation for that but since the qpid-send/receive test shows that transactions are atomic I am going to let that go for now. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1621211 13f79535-47bb-0310-9956-ffa450edef68
* QPID-5813: fix up LICENSE + NOTICE etc filesRobert Gemmell2014-08-272-31/+4
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1620850 13f79535-47bb-0310-9956-ffa450edef68
* NO-JIRA: Fix timeout on python messaging.Session.commit and rollbackAlan Conway2014-08-221-3/+5
| | | | | | Fix both to take timeout arg and raise Timeout exception if timeout expires. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1619813 13f79535-47bb-0310-9956-ffa450edef68
* QPID-5813: Advance version numbers on trunk to 0.29Justin Ross2014-08-071-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1616587 13f79535-47bb-0310-9956-ffa450edef68
* NO-JIRA: Strengthen ant python test wrapper to ensure that ant will fail if ↵Keith Wall2014-07-301-5/+13
| | | | | | it fails to identify the pid of the broker\'s process git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1614598 13f79535-47bb-0310-9956-ffa450edef68
* [QPID-5852]: connection.opened() returns True after unsuccessful connection ↵Pavel Moravec2014-07-241-1/+2
| | | | | | (fixing regression infested by previous commit) git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1613270 13f79535-47bb-0310-9956-ffa450edef68
* QPID-5923: check requested node type when handling deleteGordon Sim2014-07-241-3/+4
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1613130 13f79535-47bb-0310-9956-ffa450edef68
* QPID-5921: add missing clause to resolution logic for when only exchange ↵Gordon Sim2014-07-241-0/+5
| | | | | | exists but queue create was requested git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1613129 13f79535-47bb-0310-9956-ffa450edef68
* QPID-5888: transaction should always be aborted on failoverAlan Conway2014-07-181-0/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | C++ and python clients were attempting to continue the transation transparently after failover which is in correct. They were re-sending messages in the transaction but there is no way to re-do transactional receives. The transaction must be aborted. The C++ and python clients have been modified to kill a transactional session with a TransactionAborted exception if there is a failover. Note the Java client already behaves correctly but not identically. It defers raising an exception until commit rather than failing immediately on failover, and the session can still be used. The following commits are involved: r1611349 QPID-5887: revised approach to implict abort r1610959 QPID-5887: allow qpid-txtest2 to be run by make test r1610958 QPID-5887: fix to new txtest2, acknowledge messages in the check phase to ensure queues remain drained for any subsequent runs r1609748 QPID-5887: abort transactional session on failover; added equivalent of txtest using messaging API This commit does the following: - Update ha_tests.py tx_simpler_failover test to expect transaction aborted. - Minor improvements to qpid-txtest2 - Fix native (non-swig) python client. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1611748 13f79535-47bb-0310-9956-ffa450edef68
* QPID-5894: force cert checking if user specifically asks to verify the ↵Ken Giusti2014-07-182-0/+7
| | | | | | remote's hostname. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1611670 13f79535-47bb-0310-9956-ffa450edef68
* QPID-5850: Support for long session names (patch from Ernie Allen)Gordon Sim2014-07-161-2/+2
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1611016 13f79535-47bb-0310-9956-ffa450edef68
* [QPID-5823]: Python client should create a node with name starting '\#'Pavel Moravec2014-07-072-1/+12
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1608350 13f79535-47bb-0310-9956-ffa450edef68
* [QPID-5864]: [Python client] Provide better error description when SASL ↵Pavel Moravec2014-07-011-1/+5
| | | | | | required but no credentials provided git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1607086 13f79535-47bb-0310-9956-ffa450edef68
* [QPID-5852]: [Python client] connection.opened() returns True after ↵Pavel Moravec2014-06-261-0/+3
| | | | | | unsuccessful connection git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1605855 13f79535-47bb-0310-9956-ffa450edef68
* QPID-5836: [Python client] Report error when encountering unrecognized ↵Pavel Moravec2014-06-261-41/+50
| | | | | | connection option git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1605704 13f79535-47bb-0310-9956-ffa450edef68