summaryrefslogtreecommitdiff
path: root/cpp/src/qpid
Commit message (Collapse)AuthorAgeFilesLines
* Add missing externs for Queue methods; silence getenv() warnings on Windows ↵Stephen D. Huston2009-07-131-2/+2
| | | | | | by setting _CRT_NO_SECURE_WARNING git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@793717 13f79535-47bb-0310-9956-ffa450edef68
* Replace getenv usage with more secure Windows calls - silences compile ↵Stephen D. Huston2009-07-134-5/+28
| | | | | | diagnostics. This involved adding a new method Broker::Options::getHome() implemented separately for Windows and posix BrokerDefaults.cpp git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@793716 13f79535-47bb-0310-9956-ffa450edef68
* Reverted checkins 793119, 793120, 793121, 793122 because of problems with ↵Kim van der Riet2009-07-1320-99/+103
| | | | | | heartbeats and the store tests. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@793602 13f79535-47bb-0310-9956-ffa450edef68
* Change remaining broker Timer clients to use the single broker TimerAndrew Stitcher2009-07-105-8/+10
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@793122 13f79535-47bb-0310-9956-ffa450edef68
* Change all broker users of broker::Timer to use sys::TimerAndrew Stitcher2009-07-1016-91/+78
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@793121 13f79535-47bb-0310-9956-ffa450edef68
* Allow TimerTasks to be delayed correctly by separating out the timeAndrew Stitcher2009-07-102-3/+10
| | | | | | | used to sort in the priority queue and the firing time git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@793120 13f79535-47bb-0310-9956-ffa450edef68
* Typos/Whitespace fixesAndrew Stitcher2009-07-103-5/+5
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@793119 13f79535-47bb-0310-9956-ffa450edef68
* Correct the case where for very low ( bytes) staging threshhold managementCarl C. Trieloff2009-07-101-1/+4
| | | | | | | | could get disabled. Fix prevents the staging of management messages + test git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@793091 13f79535-47bb-0310-9956-ffa450edef68
* Fix cluster handling of multiple errors.Alan Conway2009-07-103-19/+37
| | | | | | | | | | If an error occured while there were frames on the error queue from a previous error, the enqueued frames were not being processed for the new error, which could lead to error-check or config-change frames being missed. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@792991 13f79535-47bb-0310-9956-ffa450edef68
* Minor improvement to cluster logging.Alan Conway2009-07-091-3/+6
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@792677 13f79535-47bb-0310-9956-ffa450edef68
* Simplified PollableConditionAlan Conway2009-07-094-121/+32
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@792676 13f79535-47bb-0310-9956-ffa450edef68
* Move helper functions out of the public interface, as they are unsafeCarl C. Trieloff2009-07-091-3/+4
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@792665 13f79535-47bb-0310-9956-ffa450edef68
* Fix to cover this case:Carl C. Trieloff2009-07-083-1/+13
| | | | | | | | | | | | | 1. start two nodes 2. create cluster durable queue and add some messages 3. kill one node (trigger force-persistent behaviour) 4. stop and recover remaining node 5. add another node 6. kill that new node again git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@792285 13f79535-47bb-0310-9956-ffa450edef68
* fix for regression in patch & test to prevent regression againCarl C. Trieloff2009-07-081-1/+1
| | | | | | | | | | | | | | | | | Simulate this: 1. start 2 nodes 2. create cluster durable lvq 3. send a transient message to the queue 4. kill one of the nodes (to trigger force persistent behaviour)... 5. then restart it (to turn off force persistent behaviour) 6. send another transient message with same lvq key as in 3 7. kill the second node again (retrigger force persistent) 8. stop and recover the first node git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@792259 13f79535-47bb-0310-9956-ffa450edef68
* Now that broker expects clients to send heartbeats, the client half of an ↵Gordon Sim2009-07-081-3/+8
| | | | | | inter-broker link must echo heratbeats (as these are set to the maximum allowed value for such links). git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@792237 13f79535-47bb-0310-9956-ffa450edef68
* More tests and complete fix for svn791672 commit -- correct requeueCarl C. Trieloff2009-07-084-6/+23
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@792208 13f79535-47bb-0310-9956-ffa450edef68
* QPID-1974: Fixes (and tests) for updating lvq state to new cluster members.Gordon Sim2009-07-085-3/+30
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@792103 13f79535-47bb-0310-9956-ffa450edef68
* Properly handle queued closes originating locally. Fixes QPID-1952Stephen D. Huston2009-07-071-3/+8
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@791997 13f79535-47bb-0310-9956-ffa450edef68
* Correcting to ensure recovered cluster-durable messages are dequeued from storeCarl C. Trieloff2009-07-071-2/+8
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@791886 13f79535-47bb-0310-9956-ffa450edef68
* More tests and completion of fix for 791672Carl C. Trieloff2009-07-072-5/+12
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@791858 13f79535-47bb-0310-9956-ffa450edef68
* Corrected the case where message on more than one queue does not persist ↵Carl C. Trieloff2009-07-073-2/+11
| | | | | | when last node standing is enabled git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@791672 13f79535-47bb-0310-9956-ffa450edef68
* Federation: Propagation of dynamic bindings is now done on the thread ↵Ted Ross2009-07-026-14/+30
| | | | | | | | | | | servicing the federation link (connection). Also, some minor cleanup of unneeded recursive includes. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@790698 13f79535-47bb-0310-9956-ffa450edef68
* Fix members joining cluster while cluster is handling client errors.Alan Conway2009-07-018-38/+80
| | | | | | | Completes the previous incomplete fix in r790163. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@790397 13f79535-47bb-0310-9956-ffa450edef68
* Prevent broker thread blocking while SSL handshake completes.Gordon Sim2009-07-011-2/+0
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@790291 13f79535-47bb-0310-9956-ffa450edef68
* QPID-1963: hold lock across TopicExchange::isBound() methodGordon Sim2009-07-011-0/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@790164 13f79535-47bb-0310-9956-ffa450edef68
* Fix members joining cluster while cluster is handling client errors.Alan Conway2009-07-0110-33/+229
| | | | | | | | | | | Previously cluster members could abort if a new member joins while existing members are handling a client error. Now if an update offer arrives while an error is in progress, the offering broker retracts the offer and the newcomer must try again. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@790163 13f79535-47bb-0310-9956-ffa450edef68
* Fix cluster race condition with connections closed by broker while in use.Alan Conway2009-06-307-36/+45
| | | | | | | | | | | | | | | | 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
* 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
* 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
* 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
* 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-221-1/+1
| | | | 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-173-3/+19
| | | | | | | 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
* 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