mirror of https://github.com/apache/activemq.git
https://issues.apache.org/jira/browse/AMQ-4328 - AMQ3274Test, org.apache.activemq.usecases.NetworkBridgeProducerFlowControlTest - sync needs to be conditional
git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@1448809 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
56cfa302cf
commit
806ec21eb6
|
@ -895,9 +895,14 @@ public abstract class DemandForwardingBridgeSupport implements NetworkBridge, Br
|
||||||
|
|
||||||
protected void addSubscription(DemandSubscription sub) throws IOException {
|
protected void addSubscription(DemandSubscription sub) throws IOException {
|
||||||
if (sub != null) {
|
if (sub != null) {
|
||||||
|
if (isDuplex()) {
|
||||||
|
// async vm transport, need to wait for completion
|
||||||
|
localBroker.request(sub.getLocalInfo());
|
||||||
|
} else {
|
||||||
localBroker.oneway(sub.getLocalInfo());
|
localBroker.oneway(sub.getLocalInfo());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
protected void removeSubscription(final DemandSubscription sub) throws IOException {
|
protected void removeSubscription(final DemandSubscription sub) throws IOException {
|
||||||
if (sub != null) {
|
if (sub != null) {
|
||||||
|
|
Loading…
Reference in New Issue