summaryrefslogtreecommitdiff
path: root/qpid/python
Commit message (Collapse)AuthorAgeFilesLines
* QPID-7207: remove cpp and python subdirs from svn trunk, they have migrated ↵Robert Gemmell2016-07-05152-36304/+0
| | | | | | to their own git repositories git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1751566 13f79535-47bb-0310-9956-ffa450edef68
* QPID-7258: [Python Client for AMQP 0-8...0-9-1] Remove superfluous import ↵Lorenz Quack2016-05-131-1/+1
| | | | | | (review comment from @kwall) git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1743615 13f79535-47bb-0310-9956-ffa450edef68
* QPID-7259: delay adding transfers to completed set until we have verified ↵Gordon Sim2016-05-121-1/+4
| | | | | | queue is empty git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1743491 13f79535-47bb-0310-9956-ffa450edef68
* QPID-7258: Python Client for AMQP 0-8...0-9-1] PerformLorenz Quack2016-05-112-35/+81
| | | | | | | | | | hostname verification of tls connections * hostname verification is performed by default. * introduce connection_option "ssl_skip_hostname_check" to disable this feature * hostname verification will throw an ImportError on Python <2.6 git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1743379 13f79535-47bb-0310-9956-ffa450edef68
* QPID-7251: [Python Client] fix explicit setting of mechanism and/or response ↵Lorenz Quack2016-05-101-15/+24
| | | | | | on AMQP 0-8 and 0-9 git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1743168 13f79535-47bb-0310-9956-ffa450edef68
* QPID-7207: Improve the Qpid Python install and test instructionsJustin Ross2016-04-211-6/+12
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1740373 13f79535-47bb-0310-9956-ffa450edef68
* QPID-7222: Make python test ↵Alex Rudyy2016-04-211-0/+6
| | | | | | qpid_tests.broker_0_10.message.MessageTests.test_release_order to fetch explicitly required number of messages before sending accept/release in order to make sure that released messages are not resend back by the broker git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1740341 13f79535-47bb-0310-9956-ffa450edef68
* QPID-7207: Add Qpid Python install directions; markdownify the readme; ↵Justin Ross2016-04-214-65/+89
| | | | | | remove an obsolete file git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1740297 13f79535-47bb-0310-9956-ffa450edef68
* QPID-7207: Create independent cpp and python subtrees, with content from ↵Justin Ross2016-04-2146-231/+10822
| | | | | | tools and extras git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1740289 13f79535-47bb-0310-9956-ffa450edef68
* QPID-7180: [Python Test Suite] Adapt broker url to match expectations of the ↵Keith Wall2016-04-021-1/+33
| | | | | | C++ client if swigged client is in-use git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1737539 13f79535-47bb-0310-9956-ffa450edef68
* QPID-7053: Add a callback that is invoked when asynchronous errors areKen Giusti2016-02-164-24/+190
| | | | | | | detected by the background thread. QPID-7064: Improve documentation of the asynchronous error callbacks. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1730741 13f79535-47bb-0310-9956-ffa450edef68
* NO-JIRA: update year in NOTICE files (for bits perhaps looking to get ↵Robert Gemmell2016-01-061-1/+1
| | | | | | released soon, rest needs a tidy up). git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1723357 13f79535-47bb-0310-9956-ffa450edef68
* QPID-6839: python-qpid: Log the failure of the Selector threadKen Giusti2015-11-112-42/+75
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1713943 13f79535-47bb-0310-9956-ffa450edef68
* NO-JIRA: Fix for python client ValueError exception. see bz1249608Ernest Allen2015-09-022-3/+4
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1700852 13f79535-47bb-0310-9956-ffa450edef68
* NO-JIRA: update version numbers/datesRobert Gemmell2015-06-251-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1687474 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@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@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@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@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@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@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@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@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@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@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@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@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@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@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@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@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@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@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@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@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@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@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@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@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@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@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@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@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@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@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@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@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@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@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@1621211 13f79535-47bb-0310-9956-ffa450edef68