summaryrefslogtreecommitdiff
path: root/cpp/src
Commit message (Collapse)AuthorAgeFilesLines
* Fix cluster race condition with connections closed by broker while in use.Alan Conway2009-06-3010-44/+62
| | | | | | | | | | | | | | | | If a client is using a connection that is closed at the broker end because of an error, there is a race condition that allows the connection to be incorrectly re-created on replica brokers which can cause those brokers to exit with an error that does not occur on the directly connected broker. The fix: explicitly announce new connections, shadow connections are no longer implicitly created on first use. Make error-check a cluster control so it can be handled independently of the lifecycle of the connection where an error initially occured. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@789947 13f79535-47bb-0310-9956-ffa450edef68
* Removed installation lines that were redundant with the ↵Ted Ross2009-06-301-3/+0
| | | | | | nobase_include_HEADERS in the main makefile. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@789773 13f79535-47bb-0310-9956-ffa450edef68
* Add some ring queue tests to make check-long (fix script to use QPID_PORT ↵Gordon Sim2009-06-303-6/+44
| | | | | | | | | correctly) git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@789671 13f79535-47bb-0310-9956-ffa450edef68
* Minor test env name cleanup which syncs with changes to storeKim van der Riet2009-06-292-9/+9
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@789369 13f79535-47bb-0310-9956-ffa450edef68
* Backout last change to test scriptGordon Sim2009-06-291-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@789354 13f79535-47bb-0310-9956-ffa450edef68
* Have receivers in test ignore duplicates (makes it possible to recover from ↵Gordon Sim2009-06-291-1/+1
| | | | | | certain failure scenarios) git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@789322 13f79535-47bb-0310-9956-ffa450edef68
* Added extra test script for testing ring queues plus a random data ↵Gordon Sim2009-06-293-0/+274
| | | | | | generation utility. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@789317 13f79535-47bb-0310-9956-ffa450edef68
* In isInline() don't try to take address of a vector w/o storage yet; fixes ↵Stephen D. Huston2009-06-261-0/+4
| | | | | | QPID-1960 git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@788893 13f79535-47bb-0310-9956-ffa450edef68
* Take dirpath off of plugin name to load; fixes QPID-1959Stephen D. Huston2009-06-261-2/+2
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@788890 13f79535-47bb-0310-9956-ffa450edef68
* Export callMe on Windows; fixes QPID-1958Stephen D. Huston2009-06-261-1/+5
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@788889 13f79535-47bb-0310-9956-ffa450edef68
* Fix out-of-range vector access; fixes QPID-1957Stephen D. Huston2009-06-261-1/+2
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@788886 13f79535-47bb-0310-9956-ffa450edef68
* Added const to the Uuid constructor argument.Ted Ross2009-06-252-5/+5
| | | | | | | | | | | Without this, calls to Uuid with a const uint8_t* argument were matched by the compiler to the constructor with the boolean argument yielding no warnings but very unpredictable behavior (instead of initializing the Uuid to the initial value, it generated a random value). Also, minor cosmetic cleanup in ManagementAgent.cpp. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@788521 13f79535-47bb-0310-9956-ffa450edef68
* Require exact match for environment variables before they are interpreted as ↵Gordon Sim2009-06-251-1/+2
| | | | | | options (rather than simply matching as a prefix to an option name). git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@788439 13f79535-47bb-0310-9956-ffa450edef68
* Added one missing trace logTed Ross2009-06-251-1/+2
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@788408 13f79535-47bb-0310-9956-ffa450edef68
* Added debug logs to the embedded broker agentTed Ross2009-06-251-8/+59
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@788397 13f79535-47bb-0310-9956-ffa450edef68
* Added qpid_ping: a simple client to verify broker responsiveness.Alan Conway2009-06-252-0/+120
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@788353 13f79535-47bb-0310-9956-ffa450edef68
* Fix to perftest to make sure that all threads are joined even if thereAndrew Stitcher2009-06-231-27/+23
| | | | | | | is an exception git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@787816 13f79535-47bb-0310-9956-ffa450edef68
* Fix for issue where a broker with single io thread can get stuck if itAndrew Stitcher2009-06-231-0/+1
| | | | | | | runs out of file handles. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@787815 13f79535-47bb-0310-9956-ffa450edef68
* Client side fix to make sure we don't schedule a disconnectAndrew Stitcher2009-06-231-1/+4
| | | | | | | due to timeout when we are already disconnecting git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@787814 13f79535-47bb-0310-9956-ffa450edef68
* Add blocking to sys::Timer so that timer callback and cancelAndrew Stitcher2009-06-232-2/+13
| | | | | | | can't happen interleaved git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@787813 13f79535-47bb-0310-9956-ffa450edef68
* Add blocking to broker::Timer/TimerTask so cancel and fire()Andrew Stitcher2009-06-232-3/+15
| | | | | | | cannot be interleaved. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@787812 13f79535-47bb-0310-9956-ffa450edef68
* Once we're aborting the connection due to traffic timeout make sureAndrew Stitcher2009-06-231-1/+6
| | | | | | | we cancel heartbeats git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@787811 13f79535-47bb-0310-9956-ffa450edef68
* Don't schedule eof() in response to traffic timeout if alreadyAndrew Stitcher2009-06-231-2/+8
| | | | | | | | disconnecting and make sure that this is true for all close down paths git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@787810 13f79535-47bb-0310-9956-ffa450edef68
* Make sure you close down heartbeatTimer for every close even if you don'tAndrew Stitcher2009-06-231-1/+2
| | | | | | | need to do anything else git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@787809 13f79535-47bb-0310-9956-ffa450edef68
* QPID-1936: Fix potential deadlock for durable ring queueGordon Sim2009-06-234-15/+58
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@787625 13f79535-47bb-0310-9956-ffa450edef68
* Renamed new directory to avoid clashing with executable name where build is ↵Gordon Sim2009-06-236-0/+0
| | | | | | done in source tree. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@787618 13f79535-47bb-0310-9956-ffa450edef68
* Script fixes to get tests going on Windows; includes properly licensed ↵Stephen D. Huston2009-06-223-26/+51
| | | | | | background.ps1 git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@787431 13f79535-47bb-0310-9956-ffa450edef68
* Fix compile errorStephen D. Huston2009-06-221-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@787422 13f79535-47bb-0310-9956-ffa450edef68
* Test script to run distributed perftest against a cluster.Alan Conway2009-06-226-0/+150
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@787415 13f79535-47bb-0310-9956-ffa450edef68
* Log an error only the first time a detached session is used, ignore after that.Alan Conway2009-06-222-15/+21
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@787332 13f79535-47bb-0310-9956-ffa450edef68
* Resolve Windows build errors/warningsStephen D. Huston2009-06-228-18/+17
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@787286 13f79535-47bb-0310-9956-ffa450edef68
* Make error-check a cluster-connection control rather than a cluster control.Alan Conway2009-06-186-23/+27
| | | | | | | | | Fixes bug if an error occurs during update. As cluster controls, error-checks were being processed out of sequence with the connection data they referred to. Making them connection controls ensures they are processed in the proper order. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@786294 13f79535-47bb-0310-9956-ffa450edef68
* Correct order of args to memset(); fixes QPID-1787Stephen D. Huston2009-06-181-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@786148 13f79535-47bb-0310-9956-ffa450edef68
* Add missing include required on some platforms.Gordon Sim2009-06-181-0/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@785964 13f79535-47bb-0310-9956-ffa450edef68
* Handle invalid AMPQ data to a cluster by closing the offending connection.Alan Conway2009-06-174-5/+61
| | | | | | | Prior to this fix, invalid data shut down the whole cluster. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@785788 13f79535-47bb-0310-9956-ffa450edef68
* Don't throw exception from destructor in Mutex and Condition as this is ↵Gordon Sim2009-06-173-3/+5
| | | | | | unsafe and unhelpful. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@785757 13f79535-47bb-0310-9956-ffa450edef68
* Ensure that the ConnectionTimeoutTask does not block other tasks (e.g. ↵Gordon Sim2009-06-172-22/+35
| | | | | | ConnectionHeartbeatTask) by having the timeout changed after it has been submitted. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@785733 13f79535-47bb-0310-9956-ffa450edef68
* Drop _EXPECTED_FAILURES macro, doesn't work with all boost versions.Alan Conway2009-06-173-28/+6
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@785601 13f79535-47bb-0310-9956-ffa450edef68
* Performance improvements in AggregateOutput and SemanticState.Alan Conway2009-06-1621-202/+229
| | | | | | | | | | | | | | Replaced AggregateOutput hierarchy with a flat list per connection holding only the OutputTasks that are potentially active. Tasks are droped from the list as soon as they return false, and added back when they may have output. Inlined frequently-used SequenceNumber functions. Replace std::list in QueueListeners with std::vector. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@785408 13f79535-47bb-0310-9956-ffa450edef68
* Revert bad optimization: unpredictable ordering of set caused cluster failures.Alan Conway2009-06-122-9/+25
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@784267 13f79535-47bb-0310-9956-ffa450edef68
* Change to test directory names for installed tests missed in previous checkinKim van der Riet2009-06-111-2/+2
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@783876 13f79535-47bb-0310-9956-ffa450edef68
* Change to test directory names for installed testsKim van der Riet2009-06-111-2/+2
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@783874 13f79535-47bb-0310-9956-ffa450edef68
* Minor change to clarify queue size policy log messagesKim van der Riet2009-06-111-3/+6
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@783866 13f79535-47bb-0310-9956-ffa450edef68
* QPID-1786 - Committed qmf patches from Bryan KearneyTed Ross2009-06-1110-13/+181
| | | | | | | | Additionally updated existing qmf and Qman to be compatible. The magic number for qmf messages has been incremented. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@783818 13f79535-47bb-0310-9956-ffa450edef68
* Avoid the case where we can receive bytes from the socketAndrew Stitcher2009-06-111-0/+1
| | | | | | | after the heartbeat timer has disconnected it git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@783792 13f79535-47bb-0310-9956-ffa450edef68
* Don't start the broker Connection heartbeat timers if theAndrew Stitcher2009-06-111-1/+1
| | | | | | | connection isn't a local connection. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@783791 13f79535-47bb-0310-9956-ffa450edef68
* Stop timers on receiving Connection::closed() from lower levelsAndrew Stitcher2009-06-111-0/+4
| | | | | | | as well as sending close() to them. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@783790 13f79535-47bb-0310-9956-ffa450edef68
* Add flag to broker Connection so that it knows if it is aAndrew Stitcher2009-06-113-1/+9
| | | | | | | local or shadow connection git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@783789 13f79535-47bb-0310-9956-ffa450edef68
* QPID-1901: only try to load content if there is someGordon Sim2009-06-111-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@783721 13f79535-47bb-0310-9956-ffa450edef68
* If frameset being sent in cluster update is incomplete (i.e. content has ↵Gordon Sim2009-06-111-2/+17
| | | | | | been released) then send frames as is (will just be header). git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@783599 13f79535-47bb-0310-9956-ffa450edef68