clebertsuconic commented on a change in pull request #3876:
URL: https://github.com/apache/activemq-artemis/pull/3876#discussion_r766300277
##########
File path:
artemis-protocols/artemis-openwire-protocol/src/main/java/org/apache/activemq/artemis/core/protocol/openwire/OpenWireConnection.java
##########
@@ -285,21 +333,41 @@ public void bufferReceived(Object connectionID,
ActiveMQBuffer buffer) {
traceBufferReceived(connectionID, command);
}
- final Actor<Command> localVisibleActor = openWireActor;
- if (localVisibleActor != null) {
- openWireActor.act(command);
- } else {
- act(command);
- }
+ runOnActor(command);
} catch (Exception e) {
ActiveMQServerLogger.LOGGER.debug(e);
sendException(e);
}
}
+ public void restoreAutoRead() {
+ if (!autoRead) {
+ autoRead = true;
+ openWireActor.act(flushWrite);
+ }
+ }
+
+ public void disableAutoRead() {
+ autoRead = false;
+ getTransportConnection().setAutoRead(false);
+ }
+
+ protected void actualEnableAutoReadAndTtl() {
+ getTransportConnection().setAutoRead(autoRead);
Review comment:
@gtully when blocked, autoRead will be false.
We are still calling the flush o this case though..
we will need the paging to send an event to set this call.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]